[cfe-commits] r116071 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Devang Patel
dpatel at apple.com
Fri Oct 8 11:24:19 PDT 2010
Author: dpatel
Date: Fri Oct 8 13:24:19 2010
New Revision: 116071
URL: http://llvm.org/viewvc/llvm-project?rev=116071&view=rev
Log:
Tighter check in r116060 blcoked enums also. Emit enum const's debug info.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=116071&r1=116070&r2=116071&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Oct 8 13:24:19 2010
@@ -166,10 +166,10 @@
llvm::ConstantInt *CI
= llvm::ConstantInt::get(VMContext, Result.Val.getInt());
if (VarDecl *VD = dyn_cast<VarDecl>((E->getDecl()))) {
- if (!VD->isFileVarDecl()) {
+ if (!CGF.getContext().DeclMustBeEmitted(VD))
CGF.EmitDeclRefExprDbgValue(E, CI);
- }
- }
+ } else if (isa<EnumConstantDecl>(E->getDecl()))
+ CGF.EmitDeclRefExprDbgValue(E, CI);
return CI;
}
return EmitLoadOfLValue(E);
More information about the cfe-commits
mailing list