mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 14:33:02 +02:00
99307e99a2
information and update all callers. No functional change. llvm-svn: 214781
25 lines
844 B
C++
25 lines
844 B
C++
//===-- PPCMachineFunctionInfo.cpp - Private data used for PowerPC --------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "PPCMachineFunctionInfo.h"
|
|
#include "llvm/IR/DataLayout.h"
|
|
#include "llvm/MC/MCContext.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
#include "llvm/Target/TargetSubtargetInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
void PPCFunctionInfo::anchor() { }
|
|
|
|
MCSymbol *PPCFunctionInfo::getPICOffsetSymbol() const {
|
|
const DataLayout *DL = MF.getTarget().getSubtargetImpl()->getDataLayout();
|
|
return MF.getContext().GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix())+
|
|
Twine(MF.getFunctionNumber())+"$poff");
|
|
}
|