From 41a124aba77e07ab6263239bdb3df6f5feb34e13 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Nov 2009 17:38:18 +0000 Subject: indirectbr seems to work! Rip out the old code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86256 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index fe8113e953..5c592af022 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -193,28 +193,12 @@ public: private: CGDebugInfo *DebugInfo; -#ifndef USEINDIRECTBRANCH - /// LabelIDs - Track arbitrary ids assigned to labels for use in implementing - /// the GCC address-of-label extension and indirect goto. IDs are assigned to - /// labels inside getIDForAddrOfLabel(). - std::map LabelIDs; -#else /// IndirectBranch - The first time an indirect goto is seen we create a /// block with an indirect branch. Every time we see the address of a label /// taken, we add the label to the indirect goto. Every subsequent indirect /// goto is codegen'd as a jump to the IndirectBranch's basic block. llvm::IndirectBrInst *IndirectBranch; -#endif - -#ifndef USEINDIRECTBRANCH - /// IndirectGotoSwitch - The first time an indirect goto is seen we create a - /// block with the switch for the indirect gotos. Every time we see the - /// address of a label taken, we add the label to the indirect goto. Every - /// subsequent indirect goto is codegen'd as a jump to the - /// IndirectGotoSwitch's basic block. - llvm::SwitchInst *IndirectGotoSwitch; -#endif /// LocalDeclMap - This keeps track of the LLVM allocas or globals for local C /// decls. llvm::DenseMap LocalDeclMap; @@ -586,11 +570,7 @@ public: /// the input field number being accessed. static unsigned getAccessedFieldNo(unsigned Idx, const llvm::Constant *Elts); -#ifndef USEINDIRECTBRANCH - unsigned GetIDForAddrOfLabel(const LabelStmt *L); -#else llvm::BlockAddress *GetAddrOfLabel(const LabelStmt *L); -#endif llvm::BasicBlock *GetIndirectGotoBlock(); /// EmitMemSetToZero - Generate code to memset a value of the given type to 0. -- cgit v1.2.3