forked from OSchip/llvm-project
Remove dead test: this was already checked and handled a few lines
above. llvm-svn: 149841
This commit is contained in:
parent
be65578460
commit
994c1103c8
|
@ -676,11 +676,6 @@ void CppWriter::printConstant(const Constant *CV) {
|
||||||
std::string constName(getCppName(CV));
|
std::string constName(getCppName(CV));
|
||||||
std::string typeName(getCppName(CV->getType()));
|
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)) {
|
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
|
||||||
std::string constValue = CI->getValue().toString(10, true);
|
std::string constValue = CI->getValue().toString(10, true);
|
||||||
Out << "ConstantInt* " << constName
|
Out << "ConstantInt* " << constName
|
||||||
|
|
Loading…
Reference in New Issue