Revert a C API difference that I incorrectly introduced.

LLVMGetBitcodeModuleInContext should not take ownership on error. I will
try to localize this odd api requirement, but this should get the bots green.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-06-18 20:07:35 +00:00
parent fff95d57a4
commit b2791542c2
2 changed files with 5 additions and 0 deletions

View File

@ -239,6 +239,10 @@ public:
void FreeState();
void releaseBuffer() {
Buffer = nullptr;
}
bool isMaterializable(const GlobalValue *GV) const override;
bool isDematerializable(const GlobalValue *GV) const override;
std::error_code Materialize(GlobalValue *GV) override;