Move ~CodeGenAction out-of-line.

llvm-svn: 97166
This commit is contained in:
Daniel Dunbar 2010-02-25 20:37:44 +00:00
parent 2a8e3777b4
commit e8ecf9a0db
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ private:
protected: protected:
CodeGenAction(unsigned _Act); CodeGenAction(unsigned _Act);
~CodeGenAction();
virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,
llvm::StringRef InFile); llvm::StringRef InFile);

View File

@ -435,6 +435,8 @@ void BackendConsumer::EmitAssembly() {
CodeGenAction::CodeGenAction(unsigned _Act) : Act(_Act) {} CodeGenAction::CodeGenAction(unsigned _Act) : Act(_Act) {}
CodeGenAction::~CodeGenAction() {}
void CodeGenAction::EndSourceFileAction() { void CodeGenAction::EndSourceFileAction() {
// If the consumer creation failed, do nothing. // If the consumer creation failed, do nothing.
if (!getCompilerInstance().hasASTConsumer()) if (!getCompilerInstance().hasASTConsumer())