Modernize the error handling of the Materialize function.
[oota-llvm.git] / lib / IR / Globals.cpp
index 64bc61c500801103649be7b66f453036597e34a7..cecd999657e3c3dfb7406a0748f4bd05a57cd376 100644 (file)
@@ -36,8 +36,8 @@ bool GlobalValue::isMaterializable() const {
 bool GlobalValue::isDematerializable() const {
   return getParent() && getParent()->isDematerializable(this);
 }
-bool GlobalValue::Materialize(std::string *ErrInfo) {
-  return getParent()->Materialize(this, ErrInfo);
+std::error_code GlobalValue::materialize() {
+  return getParent()->materialize(this);
 }
 void GlobalValue::Dematerialize() {
   getParent()->Dematerialize(this);