diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-06 17:38:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-06 17:38:18 +0000 |
| commit | 4f24225e8ed8e46ce37da804ff7fb4ea1adc95bf (patch) | |
| tree | ac8d2fc84c51f695e45a33d21915b509e356d549 /clang/lib/CodeGen/CGExprScalar.cpp | |
| parent | eb9bc2ba82b8458304ead5306342a91d0521c472 (diff) | |
indirectbr seems to work! Rip out the old code.
llvm-svn: 86256
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 96b58d8995ae..d36eb070b126 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -135,16 +135,8 @@ public: } Value *VisitSizeOfAlignOfExpr(const SizeOfAlignOfExpr *E); Value *VisitAddrLabelExpr(const AddrLabelExpr *E) { -#ifndef USEINDIRECTBRANCH - llvm::Value *V = - llvm::ConstantInt::get(llvm::Type::getInt32Ty(CGF.getLLVMContext()), - CGF.GetIDForAddrOfLabel(E->getLabel())); - - return Builder.CreateIntToPtr(V, ConvertType(E->getType())); -#else llvm::Value *V = CGF.GetAddrOfLabel(E->getLabel()); return Builder.CreateBitCast(V, ConvertType(E->getType())); -#endif } // l-values. |
