diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-24 16:52:33 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-24 16:52:33 +0000 |
commit | 4557b2c0c2b38502ef24fa703d11e3a31b9dae85 (patch) | |
tree | f69d29cfdde1960138251fd2b8aa225a612de15b /clang/lib/CodeGen | |
parent | 8a2e601917708b677c4af0f741d738c7c4802cd6 (diff) | |
download | bcm5719-llvm-4557b2c0c2b38502ef24fa703d11e3a31b9dae85.tar.gz bcm5719-llvm-4557b2c0c2b38502ef24fa703d11e3a31b9dae85.zip |
Remove dead code
llvm-svn: 79921
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 9 | ||||
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 3 |
2 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index d0c722ecfb2..defd5f7d16d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -404,15 +404,6 @@ void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond, Builder.CreateCondBr(CondV, TrueBlock, FalseBlock); } -/// getCGRecordLayout - Return record layout info. -const CGRecordLayout *CodeGenFunction::getCGRecordLayout(CodeGenTypes &CGT, - QualType Ty) { - const RecordType *RTy = Ty->getAs<RecordType>(); - assert (RTy && "Unexpected type. RecordType expected here."); - - return CGT.getCGRecordLayout(RTy->getDecl()); -} - /// ErrorUnsupported - Print out an error that codegen doesn't support the /// specified stmt yet. void CodeGenFunction::ErrorUnsupported(const Stmt *S, const char *Type, diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 686c1a2c526..4fc6c7c773f 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -521,9 +521,6 @@ public: /// then reuse it. void StartBlock(const char *N); - /// getCGRecordLayout - Return record layout info. - const CGRecordLayout *getCGRecordLayout(CodeGenTypes &CGT, QualType RTy); - /// GetAddrOfStaticLocalVar - Return the address of a static local variable. llvm::Constant *GetAddrOfStaticLocalVar(const VarDecl *BVD); |