File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,7 @@ class DXContainerGlobals : public llvm::ModulePass {
51
51
52
52
public:
53
53
static char ID; // Pass identification, replacement for typeid
54
- DXContainerGlobals () : ModulePass(ID) {
55
- initializeDXContainerGlobalsPass (*PassRegistry::getPassRegistry ());
56
- }
54
+ DXContainerGlobals () : ModulePass(ID) {}
57
55
58
56
StringRef getPassName () const override {
59
57
return " DXContainer Global Emitter" ;
Original file line number Diff line number Diff line change @@ -262,13 +262,8 @@ class DXILPrettyPrinterLegacy : public llvm::ModulePass {
262
262
263
263
public:
264
264
static char ID;
265
- DXILPrettyPrinterLegacy () : ModulePass(ID), OS(dbgs()) {
266
- initializeDXILPrettyPrinterLegacyPass (*PassRegistry::getPassRegistry ());
267
- }
268
265
269
- explicit DXILPrettyPrinterLegacy (raw_ostream &O) : ModulePass(ID), OS(O) {
270
- initializeDXILPrettyPrinterLegacyPass (*PassRegistry::getPassRegistry ());
271
- }
266
+ explicit DXILPrettyPrinterLegacy (raw_ostream &O) : ModulePass(ID), OS(O) {}
272
267
273
268
StringRef getPassName () const override {
274
269
return " DXIL Metadata Pretty Printer" ;
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeDirectXTarget() {
64
64
initializeShaderFlagsAnalysisWrapperPass (*PR);
65
65
initializeRootSignatureAnalysisWrapperPass (*PR);
66
66
initializeDXILFinalizeLinkageLegacyPass (*PR);
67
+ initializeDXILPrettyPrinterLegacyPass (*PR);
67
68
}
68
69
69
70
class DXILTargetObjectFile : public TargetLoweringObjectFile {
You can’t perform that action at this time.
0 commit comments