[llvm] [BOLT][DWARF][NFC] Add mc opt to DWARFRewriter.cpp (PR #100800)

Sayhaan Siddiqui via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 11:56:25 PDT 2024


https://github.com/sayhaan updated https://github.com/llvm/llvm-project/pull/100800

>From 7fa00ed7fdf16f36857e47cbe8f1a387710a3211 Mon Sep 17 00:00:00 2001
From: Sayhaan Siddiqui <sayhaan at meta.com>
Date: Fri, 26 Jul 2024 11:53:54 -0700
Subject: [PATCH] [BOLT][DWARF][NFC] Add mc opt to DWARFRewriter.cpp

---
 bolt/lib/Rewrite/DWARFRewriter.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp
index 674b5f17adb3f..1fe6eb938cec1 100644
--- a/bolt/lib/Rewrite/DWARFRewriter.cpp
+++ b/bolt/lib/Rewrite/DWARFRewriter.cpp
@@ -32,6 +32,7 @@
 #include "llvm/MC/MCAssembler.h"
 #include "llvm/MC/MCObjectWriter.h"
 #include "llvm/MC/MCStreamer.h"
+#include "llvm/MC/MCTargetOptionsCommandFlags.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/Casting.h"
 #include "llvm/Support/CommandLine.h"
@@ -56,6 +57,8 @@
 #undef DEBUG_TYPE
 #define DEBUG_TYPE "bolt"
 
+static mc::RegisterMCTargetOptionsFlags MOF;
+
 static void printDie(const DWARFDie &DIE) {
   DIDumpOptions DumpOpts;
   DumpOpts.ShowForm = true;



More information about the llvm-commits mailing list