Refactor how MCCFIInstructions are created.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 24 Nov 2012 02:01:08 +0000 (02:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 24 Nov 2012 02:01:08 +0000 (02:01 +0000)
commit28c9ea3c13dfb8f6bb3226ba511d189135fcb140
tree920b8cdb1cc561bc8b375aadd1d1cffaf78349a5
parent4ccb49a8384d25cfeb65453da059ed1a7a00b5ed
Refactor how MCCFIInstructions are created.

Give MCCFIInstruction a single, private constructor and add helper static
methods that create each type of cfi instruction. This is is preparation
for changing its representation. The representation with a pair
MachineLocations older than MC and has been abused quiet a bit to support
more cfi instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168532 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCDwarf.h
lib/MC/MCDwarf.cpp
lib/MC/MCStreamer.cpp