mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
[BOLT] Fix setHasSymbolsWithFileName (#92625)
The function is used to ignore the parameter and set `HasSymbolsWithFileName` unconditionally.
This commit is contained in:
@@ -359,7 +359,7 @@ public:
|
||||
void setFileBuildID(StringRef ID) { FileBuildID = std::string(ID); }
|
||||
|
||||
bool hasSymbolsWithFileName() const { return HasSymbolsWithFileName; }
|
||||
void setHasSymbolsWithFileName(bool Value) { HasSymbolsWithFileName = true; }
|
||||
void setHasSymbolsWithFileName(bool Value) { HasSymbolsWithFileName = Value; }
|
||||
|
||||
/// Return true if relocations against symbol with a given name
|
||||
/// must be created.
|
||||
|
||||
@@ -1497,7 +1497,7 @@ void RewriteInstance::registerFragments() {
|
||||
if (!BC->hasSymbolsWithFileName()) {
|
||||
BC->errs() << "BOLT-ERROR: input file has split functions but does not "
|
||||
"have FILE symbols. If the binary was stripped, preserve "
|
||||
"FILE symbols with --keep-file-symbols strip option";
|
||||
"FILE symbols with --keep-file-symbols strip option\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user