diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-03-28 22:25:56 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-28 22:25:56 +0000 |
| commit | c2c8b58cf6e05dce97ebfe64182aabb4c7bfa5a8 (patch) | |
| tree | 035acbb24827c7dae2c66db219705a173a56b1e5 /llvm/utils/TableGen | |
| parent | 20e619fba322361b342d22f32ed49a467c31f059 (diff) | |
| download | bcm5719-llvm-c2c8b58cf6e05dce97ebfe64182aabb4c7bfa5a8.tar.gz bcm5719-llvm-c2c8b58cf6e05dce97ebfe64182aabb4c7bfa5a8.zip | |
Don't sort the names before outputing the intrinsic name table. It causes a
mismatch against the enum table.
This is a part of Sabre's master plan to drive me nuts with subtle bugs that
happens to only affect x86 be. :-)
llvm-svn: 27237
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/IntrinsicEmitter.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index 29e6e45a078..3aa887693a2 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -100,16 +100,11 @@ EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints, void IntrinsicEmitter:: EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints, std::ostream &OS) { - std::vector<std::string> Names; - for (unsigned i = 0, e = Ints.size(); i != e; ++i) - Names.push_back(Ints[i].Name); - std::sort(Names.begin(), Names.end()); - OS << "// Intrinsic ID to name table\n"; OS << "#ifdef GET_INTRINSIC_NAME_TABLE\n"; OS << " // Note that entry #0 is the invalid intrinsic!\n"; - for (unsigned i = 0, e = Names.size(); i != e; ++i) - OS << " \"" << Names[i] << "\",\n"; + for (unsigned i = 0, e = Ints.size(); i != e; ++i) + OS << " \"" << Ints[i].Name << "\",\n"; OS << "#endif\n\n"; } |

