diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-12 18:44:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-12 18:44:54 +0000 |
| commit | 4aeebec75cfa9bda32788bc338c82781d02dc060 (patch) | |
| tree | a99e4557d23e694b6d6e3d13ad43f6ed3791f1d1 /lib/CodeGen | |
| parent | 6489bbbe9915d526aba2b749d601f8176b6ffff1 (diff) | |
| download | external_llvm-4aeebec75cfa9bda32788bc338c82781d02dc060.zip external_llvm-4aeebec75cfa9bda32788bc338c82781d02dc060.tar.gz external_llvm-4aeebec75cfa9bda32788bc338c82781d02dc060.tar.bz2 | |
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
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 | ||||
| -rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 2 | ||||
| -rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 53e1fab..c5bf848 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -104,7 +104,7 @@ bool AsmPrinter::doInitialization(Module &M) { const_cast<TargetLoweringObjectFile&>(getObjFileLowering()) .Initialize(OutContext, TM); - Mang = new Mangler(*MAI); + Mang = new Mangler(OutContext); // Allow the target to emit any magic that it wants at the start of the file. EmitStartOfAsmFile(M); diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index a748b8b..d73581a 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/lib/CodeGen/ELFWriter.cpp @@ -109,7 +109,7 @@ bool ELFWriter::doInitialization(Module &M) { // Initialize TargetLoweringObjectFile. const_cast<TargetLoweringObjectFile&>(TLOF).Initialize(OutContext, TM); - Mang = new Mangler(*MAI); + Mang = new Mangler(OutContext); // ELF Header // ---------- diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 38d0017..51e538e 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -101,14 +101,12 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, // Set the default code model for the JIT for a generic target. // FIXME: Is small right here? or .is64Bit() ? Large : Small? -void -LLVMTargetMachine::setCodeModelForJIT() { +void LLVMTargetMachine::setCodeModelForJIT() { setCodeModel(CodeModel::Small); } // Set the default code model for static compilation for a generic target. -void -LLVMTargetMachine::setCodeModelForStatic() { +void LLVMTargetMachine::setCodeModelForStatic() { setCodeModel(CodeModel::Small); } |
