X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FMangler.cpp;h=1deaf2b115642e8cd9c170508a0650f268b2a698;hb=8f198b0d60ffed27260f0759fa1d0a3546d360c9;hp=f86428cff2555b61591d725d0bb38062257c60f0;hpb=fdbea5107b5a8249421fd5e603a31f40f05ea25f;p=oota-llvm.git diff --git a/lib/Target/Mangler.cpp b/lib/Target/Mangler.cpp index f86428cff25..1deaf2b1156 100644 --- a/lib/Target/Mangler.cpp +++ b/lib/Target/Mangler.cpp @@ -111,7 +111,7 @@ void Mangler::getNameWithPrefix(SmallVectorImpl &OutName, StringRef Name = GVName.toStringRef(TmpData); assert(!Name.empty() && "getNameWithPrefix requires non-empty name"); - const MCAsmInfo *MAI = Context.getAsmInfo(); + const MCAsmInfo *MAI = TM->getMCAsmInfo(); // If the global name is not led with \1, add the appropriate prefixes. if (Name[0] == '\1') { @@ -212,7 +212,7 @@ void Mangler::getNameWithPrefix(SmallVectorImpl &OutName, // If we are supposed to add a microsoft-style suffix for stdcall/fastcall, // add it. - if (Context.getAsmInfo()->hasMicrosoftFastStdCallMangling()) { + if (TM->getMCAsmInfo()->hasMicrosoftFastStdCallMangling()) { if (const Function *F = dyn_cast(GV)) { CallingConv::ID CC = F->getCallingConv(); @@ -236,13 +236,3 @@ void Mangler::getNameWithPrefix(SmallVectorImpl &OutName, } } } - -/// getSymbol - Return the MCSymbol for the specified global value. This -/// symbol is the main label that is the address of the global. -MCSymbol *Mangler::getSymbol(const GlobalValue *GV) { - SmallString<60> NameStr; - getNameWithPrefix(NameStr, GV, false); - return Context.GetOrCreateSymbol(NameStr.str()); -} - -