From: Chris Lattner Date: Sun, 26 Aug 2007 23:02:57 +0000 (+0000) Subject: remove dead code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8d193679840ed188f2af6782f564a1c2fcfd9d1;p=clang remove dead code git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41470 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGExpr.cpp b/CodeGen/CGExpr.cpp index 61fcc80ae3..a4b168d717 100644 --- a/CodeGen/CGExpr.cpp +++ b/CodeGen/CGExpr.cpp @@ -174,10 +174,6 @@ RValue CodeGenFunction::EmitLoadOfOCUElementLValue(LValue LV, } -RValue CodeGenFunction::EmitLoadOfLValue(const Expr *E) { - return EmitLoadOfLValue(EmitLValue(E), E->getType()); -} - /// EmitStoreThroughLValue - Store the specified rvalue into the specified /// lvalue, where both are guaranteed to the have the same type, and that type diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h index f9632ddf6e..43fa98c18d 100644 --- a/CodeGen/CodeGenFunction.h +++ b/CodeGen/CodeGenFunction.h @@ -301,7 +301,6 @@ public: /// EmitLoadOfLValue - Given an expression that represents a value lvalue, /// this method emits the address of the lvalue, then loads the result as an /// rvalue, returning the rvalue. - RValue EmitLoadOfLValue(const Expr *E); RValue EmitLoadOfLValue(LValue V, QualType LVType); RValue EmitLoadOfOCUElementLValue(LValue V, QualType LVType);