diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-27 16:31:55 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-27 16:31:55 -0800 |
commit | 196be9121a631f615aad8406ec5ba3ecfc3c75a7 (patch) | |
tree | 20b9629b3a054b56f5be0e0a5b560448ede59a86 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | a160615da181257bf75c5be46662b027d4a0271a (diff) |
clean up some unneeded code
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 0bf7cb1873..4a19b486f2 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -775,7 +775,6 @@ std::string JSWriter::getValueAsCastParenStr(const Value* V, AsmCast sign) { // generateInstruction - This member is called for each Instruction in a function. std::string JSWriter::generateInstruction(const Instruction *I) { std::string text = ""; - std::string bbname = "NO_BBNAME"; std::string iName(getCppName(I)); Type *T = I->getType(); @@ -784,17 +783,6 @@ std::string JSWriter::generateInstruction(const Instruction *I) { assert(0 && "FIXME: finish legalization"); // FIXME } - // Before we emit this instruction, we need to take care of generating any - // forward references. So, we get the names of all the operands in advance - const unsigned Ops(I->getNumOperands()); - std::string* opNames = new std::string[Ops]; - //dumpv("Generating instruction %s = %s (%d operands)", iName.c_str(), std::string(I->getOpcodeName()).c_str(), Ops); - - for (unsigned i = 0; i < Ops; i++) { - opNames[i] = getOpName(I->getOperand(i)); - //dumpv(" op %d: %s", i, opNames[i].c_str()); - } - switch (I->getOpcode()) { default: error("Invalid instruction"); @@ -1107,7 +1095,6 @@ std::string JSWriter::generateInstruction(const Instruction *I) { break; } } - delete [] opNames; // append debug info if (MDNode *N = I->getMetadata("dbg")) { DILocation Loc(N); |