diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2014-08-18 18:05:55 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2014-08-18 18:05:55 +0000 | 
| commit | 26e250745f2c6b6bb022d257456eca49c1d40ced (patch) | |
| tree | 315593209924eba40b39eeee997f3cc61ed591cf /contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp | |
| parent | a725bfc49ce0dcca9cbf2c267b85f0ff67c012bc (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp')
| -rw-r--r-- | contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp b/contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp index 6a0aec842be7..027ae3e2208c 100644 --- a/contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp +++ b/contrib/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp @@ -8,8 +8,16 @@  //===----------------------------------------------------------------------===//  #include "PPCMachineFunctionInfo.h" +#include "llvm/MC/MCAsmInfo.h" +#include "llvm/MC/MCContext.h" +#include "llvm/Target/TargetMachine.h"  using namespace llvm;  void PPCFunctionInfo::anchor() { } +MCSymbol *PPCFunctionInfo::getPICOffsetSymbol() const { +  const MCAsmInfo *MAI = MF.getTarget().getMCAsmInfo(); +  return MF.getContext().GetOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix())+ +    Twine(MF.getFunctionNumber())+"$poff"); +}  | 
