[llvm] da20740 - yaml2obj.h - cleanup includes and forward declaration. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 05:15:51 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-16T13:15:32+01:00
New Revision: da207407866a683563f6243e2b5f7502783b9842

URL: https://github.com/llvm/llvm-project/commit/da207407866a683563f6243e2b5f7502783b9842
DIFF: https://github.com/llvm/llvm-project/commit/da207407866a683563f6243e2b5f7502783b9842.diff

LOG: yaml2obj.h - cleanup includes and forward declaration. NFC.
Reduce StringRef.h/Error.h includes to just the necessary STLExtras.h include and StringRef/Twine forward declarations
Remove unused Expected<> forward declaration

Added: 
    

Modified: 
    llvm/include/llvm/ObjectYAML/yaml2obj.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ObjectYAML/yaml2obj.h b/llvm/include/llvm/ObjectYAML/yaml2obj.h
index 386551337d86..cf8020d7800b 100644
--- a/llvm/include/llvm/ObjectYAML/yaml2obj.h
+++ b/llvm/include/llvm/ObjectYAML/yaml2obj.h
@@ -11,14 +11,14 @@
 #ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
 #define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
 
-#include "llvm/ADT/StringRef.h"
-#include "llvm/Support/Error.h"
+#include "llvm/ADT/STLExtras.h"
 #include <memory>
 
 namespace llvm {
 class raw_ostream;
 template <typename T> class SmallVectorImpl;
-template <typename T> class Expected;
+class StringRef;
+class Twine;
 
 namespace object {
 class ObjectFile;


        


More information about the llvm-commits mailing list