From 994c1103c88bca9d92b26be2a297d4e91b3cbbe2 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 5 Feb 2012 19:30:06 +0000 Subject: Remove dead test: this was already checked and handled a few lines above. llvm-svn: 149841 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 2cfae0789f1..7c9caf6f03e 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -676,11 +676,6 @@ void CppWriter::printConstant(const Constant *CV) { std::string constName(getCppName(CV)); std::string typeName(getCppName(CV->getType())); - if (isa(CV)) { - // Skip variables and functions, we emit them elsewhere - return; - } - if (const ConstantInt *CI = dyn_cast(CV)) { std::string constValue = CI->getValue().toString(10, true); Out << "ConstantInt* " << constName -- cgit v1.2.3