From da207407866a683563f6243e2b5f7502783b9842 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 16 Apr 2020 12:58:44 +0100 Subject: [PATCH] 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 --- llvm/include/llvm/ObjectYAML/yaml2obj.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/ObjectYAML/yaml2obj.h b/llvm/include/llvm/ObjectYAML/yaml2obj.h index 3865513..cf8020d 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 namespace llvm { class raw_ostream; template class SmallVectorImpl; -template class Expected; +class StringRef; +class Twine; namespace object { class ObjectFile; -- 2.7.4