mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
make the mangler take an MCContext instead of an MAI.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
#include "llvm/Target/Mangler.h"
|
||||
#include "llvm/Transforms/Scalar.h"
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
@ -95,6 +96,7 @@ namespace {
|
||||
LoopInfo *LI;
|
||||
const Module *TheModule;
|
||||
const MCAsmInfo* TAsm;
|
||||
MCContext *TCtx;
|
||||
const TargetData* TD;
|
||||
std::map<const Type *, std::string> TypeNames;
|
||||
std::map<const ConstantFP *, unsigned> FPConstantMap;
|
||||
@ -1731,7 +1733,8 @@ bool CWriter::doInitialization(Module &M) {
|
||||
TAsm = Match->createAsmInfo(Triple);
|
||||
#endif
|
||||
TAsm = new CBEMCAsmInfo();
|
||||
Mang = new Mangler(*TAsm);
|
||||
TCtx = new MCContext(*TAsm);
|
||||
Mang = new Mangler(*TCtx);
|
||||
|
||||
// Keep track of which functions are static ctors/dtors so they can have
|
||||
// an attribute added to their prototypes.
|
||||
|
Reference in New Issue
Block a user