Add stub methods to MCStreamer for emitting Win64 exception-handling

information.

llvm-svn: 131382
This commit is contained in:
Charles Davis 2011-05-15 17:20:01 +00:00
parent 757aa983dd
commit af18d07ed6
2 changed files with 44 additions and 0 deletions

View File

@ -293,6 +293,7 @@ namespace llvm {
/// if non-zero. This must be a power of 2 on some targets.
virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
uint64_t Size, unsigned ByteAlignment = 0) = 0;
/// @}
/// @name Generating Data
/// @{
@ -456,6 +457,13 @@ namespace llvm {
virtual void EmitCFIRelOffset(int64_t Register, int64_t Offset);
virtual void EmitCFIAdjustCfaOffset(int64_t Adjustment);
virtual void EmitWin64EHFrame(MCSymbol *Symbol, MCSymbol *EHandler = 0);
virtual void EmitWin64EHPushReg(int64_t Register);
virtual void EmitWin64EHSetFrame(int64_t Register, int64_t Offset);
virtual void EmitWin64EHAllocStack(int64_t Size);
virtual void EmitWin64EHSaveReg(int64_t Register, int64_t Offset);
virtual void EmitWin64EHPushFrame(bool Code);
/// EmitInstruction - Emit the given @p Instruction into the current
/// section.
virtual void EmitInstruction(const MCInst &Inst) = 0;

View File

@ -310,6 +310,42 @@ void MCStreamer::EmitCFISameValue(int64_t Register) {
CurFrame->Instructions.push_back(Instruction);
}
void MCStreamer::EmitWin64EHFrame(MCSymbol *Symbol, MCSymbol *EHandler = 0)
{
errs() << "Not implemented yet\n";
abort();
}
void MCStreamer::EmitWin64EHPushReg(int64_t Register)
{
errs() << "Not implemented yet\n";
abort();
}
void MCStreamer::EmitWin64EHSetFrame(int64_t Register, int64_t Offset)
{
errs() << "Not implemented yet\n";
abort();
}
void MCStreamer::EmitWin64EHAllocStack(int64_t Size)
{
errs() << "Not implemented yet\n";
abort();
}
void MCStreamer::EmitWin64EHSaveReg(int64_t Register, int64_t Offset)
{
errs() << "Not implemented yet\n";
abort();
}
void MCStreamer::EmitWin64EHPushFrame(bool Code)
{
errs() << "Not implemented yet\n";
abort();
}
void MCStreamer::EmitFnStart() {
errs() << "Not implemented yet\n";
abort();