diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-14 07:47:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-14 07:47:51 +0000 |
commit | 148e876ac285c2f837e04d92b9316e32b0b4e3b9 (patch) | |
tree | 5c2379534ca7f13580ad93dc3b812845fb623b5c /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 3e51388e6a0b3df5ec36182f3af38940e5ccca0f (diff) | |
download | bcm5719-llvm-148e876ac285c2f837e04d92b9316e32b0b4e3b9.tar.gz bcm5719-llvm-148e876ac285c2f837e04d92b9316e32b0b4e3b9.zip |
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.
llvm-svn: 103769
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 331dc7d4af6..681b678c37f 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/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) |