Skip to content

Commit e66c50d

Browse files
Jezurkofrabert
authored andcommitted
[CIR][cir-link] Add stubs for UnnamedAddr
1 parent 0525bba commit e66c50d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clang/lib/CIR/Interfaces/CIRLinkerInterface.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ class CIRSymbolLinkerInterface
138138
}
139139

140140
static unsigned getBitWidth(Operation *op) { llvm_unreachable("NYI"); }
141+
142+
// FIXME: CIR does not yet have UnnamedAddr attribute
143+
static UnnamedAddr getUnnamedAddr(Operation */* op*/) {
144+
return UnnamedAddr::Global;
145+
}
146+
147+
// FIXME: CIR does not yet have UnnamedAddr attribute
148+
static void setUnnamedAddr(Operation */* op*/, UnnamedAddr addr) {}
149+
141150
};
142151

143152
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)