From aa99c94e2a75e86381bcc45de61c11725a1484d6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 1 Nov 2009 01:27:45 +0000 Subject: Revert 85678/85680. The decision is to stay with the current form of indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it for simplicity. llvm-svn: 85699 --- llvm/lib/VMCore/AsmWriter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/VMCore/AsmWriter.cpp') diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index df1d19b0fcf..9a803a16628 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1065,10 +1065,7 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV, Out << "blockaddress("; WriteAsOperandInternal(Out, BA->getFunction(), &TypePrinter, Machine); Out << ", "; - if (BA->getBasicBlock()) - WriteAsOperandInternal(Out, BA->getBasicBlock(), &TypePrinter, Machine); - else - Out << "null"; + WriteAsOperandInternal(Out, BA->getBasicBlock(), &TypePrinter, Machine); Out << ")"; return; } -- cgit v1.2.3