projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c354fd
)
Update comment.
author
Eric Christopher
<echristo@apple.com>
Wed, 13 Oct 2010 21:41:51 +0000
(21:41 +0000)
committer
Eric Christopher
<echristo@apple.com>
Wed, 13 Oct 2010 21:41:51 +0000
(21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116438
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMFastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMFastISel.cpp
b/lib/Target/ARM/ARMFastISel.cpp
index 4a2a58edc9c5e17cba997049ee5d46c346eaa530..a9b31295bc769697a0292e93e95c2ce47cf89c43 100644
(file)
--- a/
lib/Target/ARM/ARMFastISel.cpp
+++ b/
lib/Target/ARM/ARMFastISel.cpp
@@
-618,7
+618,8
@@
bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, unsigned &Reg,
}
}
- // FIXME: Handle global variables.
+ // Materialize the global variable's address into a reg which can
+ // then be used later to load the variable.
if (const GlobalValue *GV = dyn_cast<GlobalValue>(Obj)) {
unsigned Tmp = ARMMaterializeGV(GV, TLI.getValueType(Obj->getType()));
if (Tmp == 0) return false;