yaml2obj.h - cleanup includes and forward declaration. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Apr 2020 11:58:44 +0000 (12:58 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Apr 2020 12:15:32 +0000 (13:15 +0100)
Reduce StringRef.h/Error.h includes to just the necessary STLExtras.h include and StringRef/Twine forward declarations
Remove unused Expected<> forward declaration

llvm/include/llvm/ObjectYAML/yaml2obj.h

index 3865513..cf8020d 100644 (file)
 #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;