Fix unused variable/function warnings

llvm-svn: 231576
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
index 210ee47..20c63f17 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
@@ -36,15 +36,13 @@
 
 namespace llvm {
 
-namespace {
   // Helper for extensive error checking in debug builds.
-  std::error_code Check(std::error_code Err) {
-    if (Err) {
-      report_fatal_error(Err.message());
-    }
-    return Err;
+inline std::error_code Check(std::error_code Err) {
+  if (Err) {
+    report_fatal_error(Err.message());
   }
-} // end anonymous namespace
+  return Err;
+}
 
 class Twine;