diff options
author | David Greene <greened@obbligato.org> | 2011-07-29 19:07:05 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-07-29 19:07:05 +0000 |
commit | 1aa0e3e1185d80c9767c71253d83e5f23c3a4973 (patch) | |
tree | ad334e7b81f3d18436329784f8937d82caf8c888 /llvm/utils/TableGen/CodeGenTarget.cpp | |
parent | cdd64328c7a794c3229aba52e4b5a55cb8400adc (diff) | |
download | llvm-1aa0e3e1185d80c9767c71253d83e5f23c3a4973.zip llvm-1aa0e3e1185d80c9767c71253d83e5f23c3a4973.tar.gz llvm-1aa0e3e1185d80c9767c71253d83e5f23c3a4973.tar.bz2 |
[AVX] Constify Inits
Make references to Inits const everywhere. This is the final step
before making them unique.
llvm-svn: 136485
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 929791c..ceaa82f 100644 --- a/llvm/utils/TableGen/CodeGenTarget.cpp +++ b/llvm/utils/TableGen/CodeGenTarget.cpp @@ -402,7 +402,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { // Parse the list of return types. std::vector<MVT::SimpleValueType> OverloadedVTs; - ListInit *TypeList = R->getValueAsListInit("RetTypes"); + const ListInit *TypeList = R->getValueAsListInit("RetTypes"); for (unsigned i = 0, e = TypeList->getSize(); i != e; ++i) { Record *TyEl = TypeList->getElementAsRecord(i); assert(TyEl->isSubClassOf("LLVMType") && "Expected a type!"); @@ -470,7 +470,7 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { } // Parse the intrinsic properties. - ListInit *PropList = R->getValueAsListInit("Properties"); + const ListInit *PropList = R->getValueAsListInit("Properties"); for (unsigned i = 0, e = PropList->getSize(); i != e; ++i) { Record *Property = PropList->getElementAsRecord(i); assert(Property->isSubClassOf("IntrinsicProperty") && |