Remove an always true parameter.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 Nov 2013 19:35:07 +0000 (19:35 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 Nov 2013 19:35:07 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195931 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index 4bda0f1603acbddb9dbd51f062fcb98a1ccc633d..3641dc95428c203f33264d1e8b6ebd514330f2a7 100644 (file)
@@ -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.
index 6f4bd55c63a8fdc529454f29803ec5dc1d0e8aab..6273b4ad689a76f263881f0f1366a8f2fcd2dfe6 100644 (file)
@@ -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());
 }