summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite32ebf220ae6c0d23d049788b6c2abf47f09af0c (patch)
treeea6f557062bb9d768736ba9cd10f36e377a13ad9 /llvm/utils/TableGen/CodeEmitterGen.cpp
parent1aa0e3e1185d80c9767c71253d83e5f23c3a4973 (diff)
downloadbcm5719-llvm-e32ebf220ae6c0d23d049788b6c2abf47f09af0c.tar.gz
bcm5719-llvm-e32ebf220ae6c0d23d049788b6c2abf47f09af0c.zip
[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. llvm-svn: 136486
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp
index c11e4d0beb1..a95f4b8f3f1 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud