File tree Expand file tree Collapse file tree 4 files changed +3
-9
lines changed Expand file tree Collapse file tree 4 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1414#define LLVM_BINARYFORMAT_DXCONTAINER_H
1515
1616#include " llvm/ADT/StringRef.h"
17- #include " llvm/Object/Error .h"
17+ #include " llvm/Support/BinaryStreamError .h"
1818#include " llvm/Support/Error.h"
1919#include " llvm/Support/SwapByteOrder.h"
2020#include " llvm/TargetParser/Triple.h"
2121
22- #include < cstdint>
2322#include < stdint.h>
2423
2524namespace llvm {
@@ -553,13 +552,13 @@ struct RootSignatureValidations {
553552
554553 static Expected<uint32_t > validateRootFlag (uint32_t Flags) {
555554 if ((Flags & ~0x80000fff ) != 0 )
556- return llvm::make_error<object::GenericBinaryError >(" Invalid flag" );
555+ return llvm::make_error<BinaryStreamError >(" Invalid flag" );
557556 return Flags;
558557 }
559558
560559 static Expected<uint32_t > validateVersion (uint32_t Version) {
561560 if (Version < 1 || Version > 2 )
562- return llvm::make_error<object::GenericBinaryError >(" Invalid Version" );
561+ return llvm::make_error<BinaryStreamError >(" Invalid Version" );
563562 return Version;
564563 }
565564};
Original file line number Diff line number Diff line change 1818#include " llvm/ADT/SmallVector.h"
1919#include " llvm/ADT/StringRef.h"
2020#include " llvm/BinaryFormat/DXContainer.h"
21- #include " llvm/Object/Error.h"
2221#include " llvm/Support/Error.h"
2322#include " llvm/Support/MemoryBufferRef.h"
2423#include " llvm/TargetParser/Triple.h"
Original file line number Diff line number Diff line change 77// ===----------------------------------------------------------------------===//
88
99#include " llvm/Object/DXContainer.h"
10- #include " llvm/ADT/StringRef.h"
1110#include " llvm/BinaryFormat/DXContainer.h"
1211#include " llvm/Object/Error.h"
1312#include " llvm/Support/Alignment.h"
1413#include " llvm/Support/Endian.h"
15- #include " llvm/Support/Error.h"
1614#include " llvm/Support/FormatVariadic.h"
17- #include < cstdint>
1815
1916using namespace llvm ;
2017using namespace llvm ::object;
Original file line number Diff line number Diff line change 1414#include " llvm/ObjectYAML/DXContainerYAML.h"
1515#include " llvm/ADT/ScopeExit.h"
1616#include " llvm/BinaryFormat/DXContainer.h"
17- #include " llvm/Object/DXContainer.h"
1817#include " llvm/Support/ScopedPrinter.h"
1918
2019namespace llvm {
You can’t perform that action at this time.
0 commit comments