[clang] [llvm] [analysis] Software Bill of Mitigations (PR #130103)
Oskar Wirga via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 13 11:02:45 PDT 2025
================
@@ -0,0 +1,304 @@
+#include "llvm/Analysis/MitigationAnalysis.h"
+#include "llvm/IR/DebugInfo.h"
+#include "llvm/IR/DebugLoc.h"
+#include "llvm/IR/Function.h"
+#include "llvm/IR/InstIterator.h"
+#include "llvm/IR/Metadata.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/FileSystem.h"
+#include "llvm/Support/JSON.h"
+#include "llvm/Support/raw_ostream.h"
+#include <string>
+#include <unordered_map>
+
+using namespace llvm;
+
+AnalysisKey MitigationAnalysis::Key;
+
+// Add a command line flag for the module name
+static cl::opt<std::string>
+ ClOutputModuleName("mitigation-analysis-dso-name", cl::Optional,
+ cl::desc("DSO name for the module"),
+ cl::init("unknown"));
----------------
oskarwirga wrote:
We pass in link unit name information through a flag, we weren't sure if there was another way available.
https://github.com/llvm/llvm-project/pull/130103
More information about the llvm-commits
mailing list