diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-11 14:51:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-11 14:51:07 +0000 |
commit | 88b6fc06db667bd26d6ef661597affaa6abfdd0d (patch) | |
tree | f2ba50b2aecb2154041d66d5107546975fff551c /utils | |
parent | 953362cdfbf1088153f65376c86d22ee0176bcdf (diff) | |
download | external_llvm-88b6fc06db667bd26d6ef661597affaa6abfdd0d.zip external_llvm-88b6fc06db667bd26d6ef661597affaa6abfdd0d.tar.gz external_llvm-88b6fc06db667bd26d6ef661597affaa6abfdd0d.tar.bz2 |
Make the EDis tables const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/EDEmitter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/TableGen/EDEmitter.cpp b/utils/TableGen/EDEmitter.cpp index 50617cd..8ae4202 100644 --- a/utils/TableGen/EDEmitter.cpp +++ b/utils/TableGen/EDEmitter.cpp @@ -980,11 +980,7 @@ void EDEmitter::run(raw_ostream &o) { emitCommonEnums(o, i); - o << "namespace {\n"; - - o << "llvm::EDInstInfo instInfo" << target.getName().c_str() << "[] = "; + o << "static const llvm::EDInstInfo instInfo" << target.getName() << "[] = "; infoArray.emit(o, i); o << ";" << "\n"; - - o << "}\n"; } |