commit | efc4066b47027d00b43fffef9b8d780c132a1114 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Mon Jul 25 22:00:10 2016 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Mon Jul 25 22:00:10 2016 +0000 |
tree | 19910b9b03b3c455c28f6022224dafe8b75d6334 | |
parent | 1b07496cea6c9ceeee0388ee97466b24a09aa886 [diff] [blame] |
Make ConstraintKind an enum class. llvm-svn: 276697
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index b1779b2..2c8614d 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -692,9 +692,9 @@ // Parse constraints. if (skip("ONLY_IF_RO")) - Cmd->Constraint = ReadOnly; + Cmd->Constraint = ConstraintKind::ReadOnly; if (skip("ONLY_IF_RW")) - Cmd->Constraint = ReadWrite; + Cmd->Constraint = ConstraintKind::ReadWrite; expect("{"); while (!Error && !skip("}")) {