mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Remove dead test: this was already checked and handled a few lines
above. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149841 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7abf924d31
commit
23f612113a
@ -676,11 +676,6 @@ void CppWriter::printConstant(const Constant *CV) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user