Add X86 instruction printer support for printing MCValue operands.
[oota-llvm.git] / lib / VMCore / Mangler.cpp
index 5c4672b7e5a897c9b99ad97b654a7539ffc6bf99..44cf77826629546e4c35d25d9c92824ed575ad56 100644 (file)
@@ -146,7 +146,7 @@ std::string Mangler::getMangledName(const GlobalValue *GV, const char *Suffix,
       GV->hasLinkerPrivateLinkage() ? Mangler::LinkerPrivate : Mangler::Default;
 
   if (GV->hasName())
-    return makeNameProper(GV->getName() + Suffix, PrefixTy);
+    return makeNameProper(GV->getNameStr() + Suffix, PrefixTy);
   
   // Get the ID for the global, assigning a new one if we haven't got one
   // already.