Skip to content

Commit 86ff77a

Browse files
committed
Remove DXIL:: from function definitions already in the DXIL namespace
1 parent e96d1b6 commit 86ff77a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

renderdoc/driver/shaders/dxil/dxil_disassemble.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool isUndef(const Value *v)
8080
}
8181

8282
// Detect the DXC output which uses a load from global variable called "dx.nothing.*" instead of a Nop
83-
bool DXIL::IsDXCNop(const Instruction &inst)
83+
bool IsDXCNop(const Instruction &inst)
8484
{
8585
if(inst.op != Operation::Load)
8686
return false;
@@ -100,18 +100,18 @@ bool DXIL::IsDXCNop(const Instruction &inst)
100100
return false;
101101
}
102102

103-
bool DXIL::IsLLVMDebugCall(const Instruction &inst)
103+
bool IsLLVMDebugCall(const Instruction &inst)
104104
{
105105
return ((inst.op == Operation::Call) && (inst.getFuncCall()->family == FunctionFamily::LLVMDbg));
106106
}
107107

108-
bool DXIL::IsLLVMIntrinsicCall(const Instruction &inst)
108+
bool IsLLVMIntrinsicCall(const Instruction &inst)
109109
{
110110
return ((inst.op == Operation::Call) &&
111111
(inst.getFuncCall()->family == FunctionFamily::LLVMInstrinsic));
112112
}
113113

114-
bool DXIL::ShouldIgnoreSourceMapping(const Instruction &inst)
114+
bool ShouldIgnoreSourceMapping(const Instruction &inst)
115115
{
116116
// Do not set source mapping for handle creation instructions
117117
if(inst.op == Operation::Call)
@@ -136,7 +136,7 @@ bool DXIL::ShouldIgnoreSourceMapping(const Instruction &inst)
136136
}
137137

138138
// true if the Value is an SSA value i.e. from an instruction, not a constant etc.
139-
bool DXIL::IsSSA(const Value *dxilValue)
139+
bool IsSSA(const Value *dxilValue)
140140
{
141141
if(const Instruction *inst = cast<Instruction>(dxilValue))
142142
return true;
@@ -157,7 +157,7 @@ bool DXIL::IsSSA(const Value *dxilValue)
157157
return false;
158158
}
159159

160-
DXILDebug::Id DXIL::GetSSAId(const DXIL::Value *value)
160+
DXILDebug::Id GetSSAId(const DXIL::Value *value)
161161
{
162162
if(const Instruction *inst = cast<Instruction>(value))
163163
return inst->slot;
@@ -170,8 +170,8 @@ DXILDebug::Id DXIL::GetSSAId(const DXIL::Value *value)
170170
return DXILDebug::INVALID_ID;
171171
}
172172

173-
bool DXIL::FindSigParameter(const rdcarray<SigParameter> &inputSig,
174-
const EntryPointInterface::Signature &dxilParam, SigParameter &sigParam)
173+
bool FindSigParameter(const rdcarray<SigParameter> &inputSig,
174+
const EntryPointInterface::Signature &dxilParam, SigParameter &sigParam)
175175
{
176176
for(const SigParameter &param : inputSig)
177177
{
@@ -197,7 +197,7 @@ bool DXIL::FindSigParameter(const rdcarray<SigParameter> &inputSig,
197197
}
198198

199199
// Replace '.' -> '_'
200-
void DXIL::SanitiseName(rdcstr &name)
200+
void SanitiseName(rdcstr &name)
201201
{
202202
for(size_t c = 0; c < name.size(); ++c)
203203
{

0 commit comments

Comments
 (0)