Skip to content

Commit e424e51

Browse files
committed
fixup! fixup! [SandboxIR] Implement LoadInst
1 parent c2dd5ab commit e424e51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/include/llvm/SandboxIR/SandboxIR.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,14 @@ class Value {
264264
llvm::function_ref<bool(const Use &)> ShouldReplace);
265265
void replaceAllUsesWith(Value *Other);
266266

267+
/// \Returns the LLVM IR name of the bottom-most LLVM value.
268+
StringRef getName() const { return Val->getName(); }
269+
267270
#ifndef NDEBUG
268271
/// Should crash if there is something wrong with the instruction.
269272
virtual void verify() const = 0;
270273
/// Returns the unique id in the form 'SB<number>.' like 'SB1.'
271274
std::string getUid() const;
272-
StringRef getName() const { return Val->getName(); }
273275
virtual void dumpCommonHeader(raw_ostream &OS) const;
274276
void dumpCommonFooter(raw_ostream &OS) const;
275277
void dumpCommonPrefix(raw_ostream &OS) const;

0 commit comments

Comments
 (0)