From 148e876ac285c2f837e04d92b9316e32b0b4e3b9 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 14 May 2010 07:47:51 +0000 Subject: [PATCH] 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 --- llvm/lib/CodeGen/LLVMTargetMachine.cpp | 2 ++ llvm/test/Other/inline-asm-newline-terminator.ll | 1 + 2 files changed, 3 insertions(+) diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 331dc7d4af6e..681b678c37f8 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) diff --git a/llvm/test/Other/inline-asm-newline-terminator.ll b/llvm/test/Other/inline-asm-newline-terminator.ll index af93cc0dd2aa..f6cc5c1fb421 100644 --- a/llvm/test/Other/inline-asm-newline-terminator.ll +++ b/llvm/test/Other/inline-asm-newline-terminator.ll @@ -1,4 +1,5 @@ ; RUN: llc -filetype=obj -o - < %s +; XFAIL: vg_leak ; ModuleID = 't.c' target triple = "x86_64-apple-darwin10.0.0"