summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-17 18:49:52 +0000
committerChris Lattner <sabre@nondot.org>2009-09-17 18:49:52 +0000
commita6ebba270d1309e7c3d9fbdf58d8ac018138201f (patch)
tree9652f824e695331bad74a351e3666a8d757382f2 /llvm/lib/Target
parent3aa2d7300be709fb2286e2aeab72dc82cb7c3011 (diff)
downloadbcm5719-llvm-a6ebba270d1309e7c3d9fbdf58d8ac018138201f.tar.gz
bcm5719-llvm-a6ebba270d1309e7c3d9fbdf58d8ac018138201f.zip
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
currently unused. llvm-svn: 82157
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
-rw-r--r--llvm/lib/Target/X86/X86TargetObjectFile.cpp1
-rw-r--r--llvm/lib/Target/X86/X86TargetObjectFile.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index fd8fd9006e3..c1aab9921fb 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -290,6 +290,7 @@ TargetLoweringObjectFile::getSectionForConstant(SectionKind Kind) const {
///
const MCExpr *TargetLoweringObjectFile::
getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
+ MachineModuleInfo *MMI,
bool &IsIndirect, bool &IsPCRel) const {
// The generic implementation of this just returns a direct reference to the
// symbol.
@@ -956,6 +957,7 @@ shouldEmitUsedDirectiveFor(const GlobalValue *GV, Mangler *Mang) const {
const MCExpr *TargetLoweringObjectFileMachO::
getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
+ MachineModuleInfo *MMI,
bool &IsIndirect, bool &IsPCRel) const {
// The mach-o version of this method defaults to returning a stub reference.
IsIndirect = true;
diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.cpp b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
index ce0b8bfba77..4b4cc457aed 100644
--- a/llvm/lib/Target/X86/X86TargetObjectFile.cpp
+++ b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
@@ -15,6 +15,7 @@ using namespace llvm;
const MCExpr *X8664_MachoTargetObjectFile::
getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
+ MachineModuleInfo *MMI,
bool &IsIndirect, bool &IsPCRel) const {
// On Darwin/X86-64, we can reference dwarf symbols with foo@GOTPCREL+4, which
diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.h b/llvm/lib/Target/X86/X86TargetObjectFile.h
index 24577ae1bda..bee32a57390 100644
--- a/llvm/lib/Target/X86/X86TargetObjectFile.h
+++ b/llvm/lib/Target/X86/X86TargetObjectFile.h
@@ -21,6 +21,7 @@ namespace llvm {
virtual const MCExpr *
getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
+ MachineModuleInfo *MMI,
bool &IsIndirect, bool &IsPCRel) const;
};
} // end namespace llvm
OpenPOWER on IntegriCloud