Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison lib/Target/PowerPC/PPCMachineFunctionInfo.cpp @ 100:7d135dc70f03
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 803732b1fca8 |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
21 const DataLayout &DL = MF.getDataLayout(); | 21 const DataLayout &DL = MF.getDataLayout(); |
22 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + | 22 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + |
23 Twine(MF.getFunctionNumber()) + | 23 Twine(MF.getFunctionNumber()) + |
24 "$poff"); | 24 "$poff"); |
25 } | 25 } |
26 | |
27 MCSymbol *PPCFunctionInfo::getGlobalEPSymbol() const { | |
28 const DataLayout &DL = MF.getDataLayout(); | |
29 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + | |
30 "func_gep" + | |
31 Twine(MF.getFunctionNumber())); | |
32 } | |
33 | |
34 MCSymbol *PPCFunctionInfo::getLocalEPSymbol() const { | |
35 const DataLayout &DL = MF.getDataLayout(); | |
36 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + | |
37 "func_lep" + | |
38 Twine(MF.getFunctionNumber())); | |
39 } | |
40 | |
41 MCSymbol *PPCFunctionInfo::getTOCOffsetSymbol() const { | |
42 const DataLayout &DL = MF.getDataLayout(); | |
43 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + | |
44 "func_toc" + | |
45 Twine(MF.getFunctionNumber())); | |
46 } |