summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-05-19 22:07:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-05-19 22:07:57 +0000
commitab03eb007c246a23047f2f292e2c83a559b391e2 (patch)
tree313a26c656a8f09778e1615a8049ea8cb7906815 /llvm/lib/Target/X86/X86FastISel.cpp
parent3868e468fea62a245b12f9debec242f6d2a62e23 (diff)
downloadbcm5719-llvm-ab03eb007c246a23047f2f292e2c83a559b391e2.tar.gz
bcm5719-llvm-ab03eb007c246a23047f2f292e2c83a559b391e2.zip
Record a TargetMachine instead of a Reloc::Model.
Addresses r270095's code review. llvm-svn: 270147
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index cc7a1024608..69fd8bac64b 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -607,7 +607,7 @@ bool X86FastISel::handleConstantAddresses(const Value *V, X86AddressMode &AM) {
AM.GV = GV;
// Allow the subtarget to classify the global.
- unsigned char GVFlags = Subtarget->classifyGlobalReference(GV, TM);
+ unsigned char GVFlags = Subtarget->classifyGlobalReference(GV);
// If this reference is relative to the pic base, set it now.
if (isGlobalRelativeToPICBase(GVFlags)) {
OpenPOWER on IntegriCloud