Skip to content

Commit d3349ce

Browse files
Joao SaffranJoao Saffran
authored andcommitted
clean up
1 parent def929f commit d3349ce

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/include/llvm/Frontend/HLSL/RootSignatureMetadata.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define LLVM_FRONTEND_HLSL_ROOTSIGNATUREMETADATA_H
1616

1717
#include "llvm/ADT/StringRef.h"
18-
#include "llvm/BinaryFormat/DXContainer.h"
1918
#include "llvm/Frontend/HLSL/HLSLRootSignature.h"
2019
#include "llvm/IR/Constants.h"
2120
#include "llvm/MC/DXContainerRootSignature.h"
@@ -42,6 +41,7 @@ toResourceClass(dxbc::DescriptorRangeType RangeType) {
4241
case DescriptorRangeType::Sampler:
4342
return dxil::ResourceClass::Sampler;
4443
}
44+
llvm_unreachable("Unknown DescriptorRangeType");
4545
}
4646

4747
inline dxil::ResourceClass toResourceClass(dxbc::RootParameterType Type) {
@@ -56,9 +56,9 @@ inline dxil::ResourceClass toResourceClass(dxbc::RootParameterType Type) {
5656
case RootParameterType::CBV:
5757
return dxil::ResourceClass::CBuffer;
5858
case dxbc::RootParameterType::DescriptorTable:
59-
break;
59+
llvm_unreachable("DescriptorTable is not convertible to ResourceClass");
6060
}
61-
llvm_unreachable("Unconvertible RootParameterType");
61+
llvm_unreachable("Unknown RootParameterType");
6262
}
6363

6464
template <typename T>

llvm/lib/Frontend/HLSL/RootSignatureMetadata.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
#include "llvm/Frontend/HLSL/RootSignatureValidations.h"
1616
#include "llvm/IR/IRBuilder.h"
1717
#include "llvm/IR/Metadata.h"
18-
#include "llvm/Support/Error.h"
1918
#include "llvm/Support/ScopedPrinter.h"
20-
#include <cstdint>
2119

2220
using namespace llvm;
2321

0 commit comments

Comments
 (0)