summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
diff options
context:
space:
mode:
authorDavid Peixotto <dpeixott@codeaurora.org>2014-07-18 16:05:14 +0000
committerDavid Peixotto <dpeixott@codeaurora.org>2014-07-18 16:05:14 +0000
commitae5ba76221c698bc8aed4dba72495d147fe42300 (patch)
treea6e7777784146fd6d1d380febd563d260933f83b /llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
parenta2347baaec37ba81d64f9b455af3084cf183f127 (diff)
downloadbcm5719-llvm-ae5ba76221c698bc8aed4dba72495d147fe42300.tar.gz
bcm5719-llvm-ae5ba76221c698bc8aed4dba72495d147fe42300.zip
MC: support different sized constants in constant pools
On AArch64 the pseudo instruction ldr <reg>, =... supports both 32-bit and 64-bit constants. Add support for 64 bit constants for the pools to support the pseudo instruction fully. Changes the AArch64 ldr-pseudo tests to use 32-bit registers and adds tests with 64-bit registers. Patch by Janne Grunau! Differential Revision: http://reviews.llvm.org/D4279 llvm-svn: 213387
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp')
-rw-r--r--llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
index ad3f1caae34..8acd7aff6bc 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
@@ -28,7 +28,7 @@ ARMTargetStreamer::~ARMTargetStreamer() {}
// The constant pool handling is shared by all ARMTargetStreamer
// implementations.
const MCExpr *ARMTargetStreamer::addConstantPoolEntry(const MCExpr *Expr) {
- return ConstantPools->addEntry(Streamer, Expr);
+ return ConstantPools->addEntry(Streamer, Expr, 4);
}
void ARMTargetStreamer::emitCurrentConstantPool() {
OpenPOWER on IntegriCloud