LLVM  3.7.0
PPCMachineFunctionInfo.cpp
Go to the documentation of this file.
1 //===-- PPCMachineFunctionInfo.cpp - Private data used for PowerPC --------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "PPCMachineFunctionInfo.h"
11 #include "llvm/IR/DataLayout.h"
12 #include "llvm/MC/MCContext.h"
15 
16 using namespace llvm;
17 
18 void PPCFunctionInfo::anchor() { }
19 
21  const DataLayout *DL = MF.getTarget().getDataLayout();
23  Twine(MF.getFunctionNumber()) +
24  "$poff");
25 }
A parsed version of the target data layout string in and methods for querying it. ...
Definition: DataLayout.h:104
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:39
const char * getPrivateGlobalPrefix() const
Definition: DataLayout.h:281
unsigned getFunctionNumber() const
getFunctionNumber - Return a unique ID for the current function.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
MCContext & getContext() const
const DataLayout * getDataLayout() const
Deprecated in 3.7, will be removed in 3.8.
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
Definition: MCContext.cpp:111
const TargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
MCSymbol * getPICOffsetSymbol() const