aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-07-29 19:07:07 +0000
committerDavid Greene <greened@obbligato.org>2011-07-29 19:07:07 +0000
commitdcd35c797d458d8b1dbc36cf7f1504166d5b2f16 (patch)
treea16903db111f23b3a3bd3112d00d24af3a2db225 /utils/TableGen/CodeEmitterGen.cpp
parentf37dd02f7743ebd2424480361f5a7db510495c4f (diff)
downloadexternal_llvm-dcd35c797d458d8b1dbc36cf7f1504166d5b2f16.zip
external_llvm-dcd35c797d458d8b1dbc36cf7f1504166d5b2f16.tar.gz
external_llvm-dcd35c797d458d8b1dbc36cf7f1504166d5b2f16.tar.bz2
[AVX] Create Inits Via Factory Method
Replace uses of new *Init with *Init::get. This hides the allocation implementation so that we can unique Inits in various ways. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index c11e4d0..a95f4b8 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -56,7 +56,7 @@ void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) {
NewBits[middle] = BI->getBit(middle);
}
- BitsInit *NewBI = new BitsInit(ArrayRef<const Init *>(NewBits));
+ const BitsInit *NewBI = BitsInit::get(NewBits);
// Update the bits in reversed order so that emitInstrOpBits will get the
// correct endianness.