Skip to content

Commit da20740

Browse files
committed
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
1 parent b9a8e78 commit da20740

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/ObjectYAML/yaml2obj.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
1212
#define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
1313

14-
#include "llvm/ADT/StringRef.h"
15-
#include "llvm/Support/Error.h"
14+
#include "llvm/ADT/STLExtras.h"
1615
#include <memory>
1716

1817
namespace llvm {
1918
class raw_ostream;
2019
template <typename T> class SmallVectorImpl;
21-
template <typename T> class Expected;
20+
class StringRef;
21+
class Twine;
2222

2323
namespace object {
2424
class ObjectFile;

0 commit comments

Comments
 (0)