diff options
Diffstat (limited to 'backend/lib/CodeGen/RegAllocInternal.h')
| -rw-r--r-- | backend/lib/CodeGen/RegAllocInternal.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/backend/lib/CodeGen/RegAllocInternal.h b/backend/lib/CodeGen/RegAllocInternal.h index 0becb92..52840cf 100644 --- a/backend/lib/CodeGen/RegAllocInternal.h +++ b/backend/lib/CodeGen/RegAllocInternal.h @@ -26,9 +26,6 @@ #include <optional> #include <ranges> #include <span> -#include <string> -#include <string_view> -#include <utility> #include <vector> namespace rcc::regalloc_detail { @@ -39,12 +36,6 @@ struct AllocationRunResult final { bool ChangedFrame = false; }; -[[nodiscard]] inline Error withPrefix(const Error &Failure, std::string_view Prefix) { - std::string Message(Prefix); - Message.append(Failure.message()); - return Error(Failure.code(), std::move(Message)); -} - [[nodiscard]] inline Expected<Register> virtualRegisterAt(std::size_t Index) { auto Reg = Register::makeVirtual(Index); if (!Reg) |
