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 | f065a6f711dca09ba36ec8fd3556c4936cdbe621 (patch) | |
tree | 4f4cb6a2488802acee2266519404bff10c4da1b9 /utils | |
parent | cef896e50cf58e6b3dc3cd431693d78b8ebfa079 (diff) | |
download | external_llvm-f065a6f711dca09ba36ec8fd3556c4936cdbe621.zip external_llvm-f065a6f711dca09ba36ec8fd3556c4936cdbe621.tar.gz external_llvm-f065a6f711dca09ba36ec8fd3556c4936cdbe621.tar.bz2 |
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. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/IntrinsicEmitter.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp index 29e6e45..3aa8876 100644 --- a/utils/TableGen/IntrinsicEmitter.cpp +++ b/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"; } |