forked from OSchip/llvm-project
[llvm-objdump] - Fix one more BB.
Should fix the http://lab.llvm.org:8011/builders/polly-amd64-linux/builds/25876/steps/build/logs/stdio: /home/grosser/buildslave/polly-amd64-linux/llvm.src/tools/llvm-objdump/llvm-objdump.cpp:539:25: error: conditional expression is ambiguous; 'std::string' (aka 'basic_string<char>') can be converted to 'typename std::remove_reference<StringRef>::type' (aka 'llvm::StringRef') and vice versa Target = Demangle ? demangle(*SymName) : *SymName; llvm-svn: 349617
This commit is contained in:
parent
2072b5afbe
commit
7120fb9b0b
|
@ -536,7 +536,10 @@ static std::error_code getRelocationValueString(const ELFObjectFile<ELFT> *Obj,
|
|||
Expected<StringRef> SymName = symb->getName(StrTab);
|
||||
if (!SymName)
|
||||
return errorToErrorCode(SymName.takeError());
|
||||
Target = Demangle ? demangle(*SymName) : *SymName;
|
||||
if (Demangle)
|
||||
Target = demangle(*SymName);
|
||||
else
|
||||
Target = *SymName;
|
||||
}
|
||||
} else
|
||||
Target = "*ABS*";
|
||||
|
|
Loading…
Reference in New Issue