aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-14 07:47:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-14 07:47:51 +0000
commitbd616b69f7ab072a623b55a244bf61541eac5f32 (patch)
tree54a966dcfb5252bc27b2523d6781bd99514e009e /lib/CodeGen/LLVMTargetMachine.cpp
parent0ebf356ddf29a38934ca3f5e49b43e0656de2053 (diff)
downloadexternal_llvm-bd616b69f7ab072a623b55a244bf61541eac5f32.zip
external_llvm-bd616b69f7ab072a623b55a244bf61541eac5f32.tar.gz
external_llvm-bd616b69f7ab072a623b55a244bf61541eac5f32.tar.bz2
XFAIL the test I added with vg_leak, apparently it is the first and only llc
-filetype=obj test, and -filetype=obj leaks a few objects. Added a FIXME, we need to sort out the ownership model for the various MC objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 331dc7d..681b678 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -140,6 +140,8 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
case CGFT_ObjectFile: {
// Create the code emitter for the target if it exists. If not, .o file
// emission fails.
+ //
+ // FIXME: These are currently leaked.
MCCodeEmitter *MCE = getTarget().createCodeEmitter(*this, *Context);
TargetAsmBackend *TAB = getTarget().createAsmBackend(TargetTriple);
if (MCE == 0 || TAB == 0)