mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
switch X86 target off CurFunctionName and MCIze more.
Note that the code wasn't calling DecorateCygMingName when emitting the ".ascii -export" stuff at the end of file for DLLExported functions. I don't know if it should or not, but I'm preserving behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93603 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
#include "X86MachineFunctionInfo.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@ -23,7 +25,6 @@ using namespace llvm;
|
||||
X86COFFMachineModuleInfo::X86COFFMachineModuleInfo(const MachineModuleInfo &) {
|
||||
}
|
||||
X86COFFMachineModuleInfo::~X86COFFMachineModuleInfo() {
|
||||
|
||||
}
|
||||
|
||||
void X86COFFMachineModuleInfo::AddFunctionInfo(const Function *F,
|
||||
@ -114,10 +115,12 @@ void X86COFFMachineModuleInfo::DecorateCygMingName(SmallVectorImpl<char> &Name,
|
||||
|
||||
/// DecorateCygMingName - Query FunctionInfoMap and use this information for
|
||||
/// various name decorations for Cygwin and MingW.
|
||||
void X86COFFMachineModuleInfo::DecorateCygMingName(std::string &Name,
|
||||
void X86COFFMachineModuleInfo::DecorateCygMingName(const MCSymbol *&Name,
|
||||
MCContext &Ctx,
|
||||
const GlobalValue *GV,
|
||||
const TargetData &TD) {
|
||||
SmallString<128> NameStr(Name.begin(), Name.end());
|
||||
SmallString<128> NameStr(Name->getName().begin(), Name->getName().end());
|
||||
DecorateCygMingName(NameStr, GV, TD);
|
||||
Name.assign(NameStr.begin(), NameStr.end());
|
||||
|
||||
Name = Ctx.GetOrCreateSymbol(NameStr.str());
|
||||
}
|
||||
|
Reference in New Issue
Block a user