summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-11-18 23:25:52 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-11-18 23:25:52 +0000
commit14ee344944cad9a61ff15e113c27df093d851ff1 (patch)
treef6888cee9de9a226327cf8a1952493116cd282fb /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parenta391c97bd0032c0b5af03cde95f7c40683c02be8 (diff)
downloadbcm5719-llvm-14ee344944cad9a61ff15e113c27df093d851ff1.tar.gz
bcm5719-llvm-14ee344944cad9a61ff15e113c27df093d851ff1.zip
Move getInitialFrameState() to TargetFrameInfo
llvm-svn: 119754
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 86a368831e0..e3a8cde9aac 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -127,6 +127,7 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) {
Asm->OutStreamer.AddComment("CIE Return Address Column");
const TargetRegisterInfo *RI = Asm->TM.getRegisterInfo();
+ const TargetFrameInfo *TFI = Asm->TM.getFrameInfo();
Asm->EmitInt8(RI->getDwarfRegNum(RI->getRARegister(), true));
if (Augmentation[0]) {
@@ -146,7 +147,7 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) {
// Indicate locations of general callee saved registers in frame.
std::vector<MachineMove> Moves;
- RI->getInitialFrameState(Moves);
+ TFI->getInitialFrameState(Moves);
Asm->EmitFrameMoves(Moves, 0, true);
// On Darwin the linker honors the alignment of eh_frame, which means it must
OpenPOWER on IntegriCloud