[OCaml] Don't build stub libraries twice.
[oota-llvm.git] / tools / obj2yaml / Error.h
index b91bfbb33c095879fee52ecffa0a88e1c7ee2161..982f59e236cc024b9cdbee177c421d0875b79e0b 100644 (file)
@@ -7,13 +7,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_TOOLS_ERROR_H
-#define LLVM_TOOLS_ERROR_H
+#ifndef LLVM_TOOLS_OBJ2YAML_ERROR_H
+#define LLVM_TOOLS_OBJ2YAML_ERROR_H
 
 #include <system_error>
 
 namespace llvm {
-using std::error_code;
 const std::error_category &obj2yaml_category();
 
 enum class obj2yaml_error {
@@ -23,8 +22,8 @@ enum class obj2yaml_error {
   unsupported_obj_file_format
 };
 
-inline error_code make_error_code(obj2yaml_error e) {
-  return error_code(static_cast<int>(e), obj2yaml_category());
+inline std::error_code make_error_code(obj2yaml_error e) {
+  return std::error_code(static_cast<int>(e), obj2yaml_category());
 }
 
 } // namespace llvm