commit | 984c240798d5b6df02aedb4524c27670752f3264 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Tue Oct 21 19:55:09 2008 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Tue Oct 21 19:55:09 2008 +0000 |
tree | 4a47e17935f5840b3d3414148cb3d511c76b5cfd | |
parent | 943ed4b603bd0070bcc9c570179910195544f3db [diff] [blame] |
Add GetModule accessor to ModuleBuilder git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57924 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/ModuleBuilder.cpp b/lib/CodeGen/ModuleBuilder.cpp index dafc0f5..be6e171 100644 --- a/lib/CodeGen/ModuleBuilder.cpp +++ b/lib/CodeGen/ModuleBuilder.cpp
@@ -48,6 +48,10 @@ virtual ~CodeGeneratorImpl() {} + virtual llvm::Module* GetModule() { + return M.get(); + } + virtual llvm::Module* ReleaseModule() { return M.take(); }