[llvm-commits] [llvm] r149841 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp

Duncan Sands baldrick at free.fr
Sun Feb 5 11:30:06 PST 2012


Author: baldrick
Date: Sun Feb  5 13:30:06 2012
New Revision: 149841

URL: http://llvm.org/viewvc/llvm-project?rev=149841&view=rev
Log:
Remove dead test: this was already checked and handled a few lines
above.

Modified:
    llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp

Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=149841&r1=149840&r2=149841&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Sun Feb  5 13:30:06 2012
@@ -676,11 +676,6 @@
   std::string constName(getCppName(CV));
   std::string typeName(getCppName(CV->getType()));
 
-  if (isa<GlobalValue>(CV)) {
-    // Skip variables and functions, we emit them elsewhere
-    return;
-  }
-
   if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
     std::string constValue = CI->getValue().toString(10, true);
     Out << "ConstantInt* " << constName





More information about the llvm-commits mailing list