XFAIL the test I added with vg_leak, apparently it is the first and only llc
authorDaniel Dunbar <daniel@zuster.org>
Fri, 14 May 2010 07:47:51 +0000 (07:47 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 14 May 2010 07:47:51 +0000 (07:47 +0000)
-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

lib/CodeGen/LLVMTargetMachine.cpp
test/Other/inline-asm-newline-terminator.ll

index 331dc7d4af6e8bab4b538be88760196ba99037d6..681b678c37f833fb48c737e557eaf35d326a49c4 100644 (file)
@@ -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)
index af93cc0dd2aa9bd294f5e74e7e8ebf3b011b14f9..f6cc5c1fb421611176082899d90195f7cc870e89 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llc -filetype=obj -o - < %s
+; XFAIL: vg_leak
 
 ; ModuleID = 't.c'
 target triple = "x86_64-apple-darwin10.0.0"