diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 07:29:08 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 07:29:08 +0000 |
| commit | fbd38fe2e34e5c4d0415514e24bacc02d6876540 (patch) | |
| tree | ce0f987edf3c2ab631d2756d27eae8f7a2b65e03 /llvm/utils/TableGen | |
| parent | 79d45dbbf91df0b0d9c9b8c04a551bf652730bce (diff) | |
| download | bcm5719-llvm-fbd38fe2e34e5c4d0415514e24bacc02d6876540.tar.gz bcm5719-llvm-fbd38fe2e34e5c4d0415514e24bacc02d6876540.zip | |
Add an enum for the return and function indexes into the AttrListPtr object. This gets rid of some magic numbers.
llvm-svn: 165924
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/IntrinsicEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index 0e0a6bb6e75..e830a66a33b 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -606,8 +606,8 @@ EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) { OS << " AttrVec.push_back(Attributes::ReadNone);\n"; break; } - OS << " AWI[" << numAttrs++ << "] = AttributeWithIndex::get(C, ~0, " - << "AttrVec);\n"; + OS << " AWI[" << numAttrs++ << "] = AttributeWithIndex::get(C, " + << "AttrListPtr::FunctionIndex, AttrVec);\n"; } if (numAttrs) { |

