diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-28 19:35:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-28 19:35:07 +0000 |
commit | e195f6c29f9f14e06c26947cca9eb8005affc548 (patch) | |
tree | 947091cdcb198d308d6496d09e53ec0939e72d4b | |
parent | ef70d2a39399a33e4cb42f7bc98a2aa793dd7e65 (diff) | |
download | llvm-e195f6c29f9f14e06c26947cca9eb8005affc548.tar.gz llvm-e195f6c29f9f14e06c26947cca9eb8005affc548.tar.bz2 llvm-e195f6c29f9f14e06c26947cca9eb8005affc548.tar.xz |
Remove an always true parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195931 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 9 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 |
2 files changed, 5 insertions, 12 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 4bda0f1603..3641dc9542 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -304,13 +304,10 @@ namespace llvm { /// stem. MCSymbol *GetTempSymbol(StringRef Name) const; - - /// GetSymbolWithGlobalValueBase - Return the MCSymbol for a symbol with - /// global value name as its base, with the specified suffix, and where the - /// symbol is forced to have private linkage if ForcePrivate is true. + /// Return the MCSymbol for a private symbol with global value name as its + /// base, with the specified suffix. MCSymbol *GetSymbolWithGlobalValueBase(const GlobalValue *GV, - StringRef Suffix, - bool ForcePrivate = true) const; + StringRef Suffix) const; /// GetExternalSymbolSymbol - Return the MCSymbol for the specified /// ExternalSymbol. diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 6f4bd55c63..6273b4ad68 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -2033,14 +2033,10 @@ MCSymbol *AsmPrinter::GetJTSetSymbol(unsigned UID, unsigned MBBID) const { Twine(UID) + "_set_" + Twine(MBBID)); } -/// GetSymbolWithGlobalValueBase - Return the MCSymbol for a symbol with -/// global value name as its base, with the specified suffix, and where the -/// symbol is forced to have private linkage if ForcePrivate is true. MCSymbol *AsmPrinter::GetSymbolWithGlobalValueBase(const GlobalValue *GV, - StringRef Suffix, - bool ForcePrivate) const { + StringRef Suffix) const { SmallString<60> NameStr; - Mang->getNameWithPrefix(NameStr, GV, ForcePrivate); + Mang->getNameWithPrefix(NameStr, GV, true); NameStr.append(Suffix.begin(), Suffix.end()); return OutContext.GetOrCreateSymbol(NameStr.str()); } |