// frame maps by debug and exception handling consumers.
std::vector<MachineMove> FrameMoves;
+ // CompactEncoding - If the target supports it, this is the compact unwind
+ // encoding. It replaces a function's CIE and FDE.
+ uint32_t CompactEncoding;
+
// LandingPads - List of LandingPadInfo describing the landing pad information
// in the current function.
std::vector<LandingPadInfo> LandingPads;
/// handling comsumers.
std::vector<MachineMove> &getFrameMoves() { return FrameMoves; }
+ /// getCompactEncoding - Returns the compact unwind encoding for a function if
+ /// the target supports the encoding. This encoding replaces a function's CIE
+ /// and FDE.
+ uint32_t getCompactEncoding() const { return CompactEncoding; }
+
/// getAddrLabelSymbol - Return the symbol to be used for the specified basic
/// block when its address is taken. This cannot be its normal LBB label
/// because the block may be accessed outside its containing function.
const MCRegisterInfo &MRI,
const TargetAsmInfo *TAI)
: ImmutablePass(ID), Context(MAI, MRI, TAI),
- ObjFileMMI(0),
- CurCallSite(0), CallsEHReturn(0), CallsUnwindInit(0), DbgInfoAvailable(false),
- CallsExternalVAFunctionWithFloatingPointArguments(false) {
+ ObjFileMMI(0), CompactEncoding(0), CurCallSite(0), CallsEHReturn(0),
+ CallsUnwindInit(0), DbgInfoAvailable(false),
+ CallsExternalVAFunctionWithFloatingPointArguments(false) {
initializeMachineModuleInfoPass(*PassRegistry::getPassRegistry());
// Always emit some info, by default "no personality" info.
Personalities.push_back(NULL);
FilterEnds.clear();
CallsEHReturn = 0;
CallsUnwindInit = 0;
+ CompactEncoding = 0;
VariableDbgInfo.clear();
}