aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/MachineOperand.cpp')
-rw-r--r--backend/lib/CodeGen/MachineOperand.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/lib/CodeGen/MachineOperand.cpp b/backend/lib/CodeGen/MachineOperand.cpp
index 92b09dc..f265c3f 100644
--- a/backend/lib/CodeGen/MachineOperand.cpp
+++ b/backend/lib/CodeGen/MachineOperand.cpp
@@ -116,12 +116,13 @@ MachineOperand MachineOperand::jumpTable(JumpTableIndex Index, std::uint32_t Tar
}
Expected<MachineOperand> MachineOperand::globalSymbol(std::string Name, std::int64_t Offset,
- std::uint32_t TargetFlags) {
+ std::uint32_t TargetFlags,
+ GlobalValueProperties Properties) {
if (Name.empty()) {
return makeUnexpected(ErrorCode::InvalidArgument, "global symbol operand name cannot be empty");
}
- return MachineOperand(Kind::GlobalSymbol, GlobalSymbolOperand{std::move(Name), Offset},
- TargetFlags);
+ return MachineOperand(Kind::GlobalSymbol,
+ GlobalSymbolOperand{std::move(Name), Offset, Properties}, TargetFlags);
}
Expected<MachineOperand> MachineOperand::externalSymbol(std::string Name, std::int64_t Offset,