[llvm] 0fc5534 - [GlobalISel] Remove FlagsOp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 25 07:05:15 PDT 2021
Author: Kazu Hirata
Date: 2021-07-25T07:05:07-07:00
New Revision: 0fc5534ac74a9c431f7f5a6284a4729d3143d22b
URL: https://github.com/llvm/llvm-project/commit/0fc5534ac74a9c431f7f5a6284a4729d3143d22b
DIFF: https://github.com/llvm/llvm-project/commit/0fc5534ac74a9c431f7f5a6284a4729d3143d22b.diff
LOG: [GlobalISel] Remove FlagsOp (NFC)
The class was introduced without a use on Dec 11, 2018 in commit
cef44a234219e38e1c28c902ff24586150eef682.
Added:
Modified:
llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
index 61928e4aaa6b..9b652d8e16bc 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
@@ -205,14 +205,6 @@ class SrcOp {
SrcType Ty;
};
-class FlagsOp {
- Optional<unsigned> Flags;
-
-public:
- explicit FlagsOp(unsigned F) : Flags(F) {}
- FlagsOp() : Flags(None) {}
- Optional<unsigned> getFlags() const { return Flags; }
-};
/// Helper class to build MachineInstr.
/// It keeps internally the insertion point and debug location for all
/// the new instructions we want to create.
More information about the llvm-commits
mailing list