diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-06 01:21:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-06 01:21:51 +0000 |
commit | 85467a17ae8b4797db8c9c6dd9bcc04aca9d3c1d (patch) | |
tree | eaa8ae28b7f3a8804a7ac78f3a2928c73635b77c /llvm/utils/TableGen/InstrInfoEmitter.cpp | |
parent | 626b89daa4eb433f6e38057d5dfb30ad655ce54c (diff) | |
download | bcm5719-llvm-85467a17ae8b4797db8c9c6dd9bcc04aca9d3c1d.tar.gz bcm5719-llvm-85467a17ae8b4797db8c9c6dd9bcc04aca9d3c1d.zip |
final cleanups.
llvm-svn: 45644
Diffstat (limited to 'llvm/utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/InstrInfoEmitter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp index b406df3f1ba..3f2b49fda65 100644 --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -19,8 +19,8 @@ #include <iostream> using namespace llvm; -void InstrInfoEmitter::printDefList(const std::vector<Record*> &Uses, - unsigned Num, std::ostream &OS) const { +static void PrintDefList(const std::vector<Record*> &Uses, + unsigned Num, std::ostream &OS) { OS << "static const unsigned ImplicitList" << Num << "[] = { "; for (unsigned i = 0, e = Uses.size(); i != e; ++i) OS << getQualifiedName(Uses[i]) << ", "; @@ -163,12 +163,12 @@ void InstrInfoEmitter::run(std::ostream &OS) { std::vector<Record*> Uses = Inst->getValueAsListOfDefs("Uses"); if (!Uses.empty()) { unsigned &IL = EmittedLists[Uses]; - if (!IL) printDefList(Uses, IL = ++ListNumber, OS); + if (!IL) PrintDefList(Uses, IL = ++ListNumber, OS); } std::vector<Record*> Defs = Inst->getValueAsListOfDefs("Defs"); if (!Defs.empty()) { unsigned &IL = EmittedLists[Defs]; - if (!IL) printDefList(Defs, IL = ++ListNumber, OS); + if (!IL) PrintDefList(Defs, IL = ++ListNumber, OS); } } |