[llvm] Update AsmWriter.cpp - Printing comment with Name in IR (PR #78851)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 20 07:03:50 PST 2024
https://github.com/sabari-madhu created https://github.com/llvm/llvm-project/pull/78851
None
>From eea7cf45ce0837f5aeee69d9afd9d15fc513de9a Mon Sep 17 00:00:00 2001
From: sabari-madhu <sabarim2131 at gmail.com>
Date: Sat, 20 Jan 2024 20:33:10 +0530
Subject: [PATCH] Update AsmWriter.cpp - Printing comment with Name in IR
---
llvm/lib/IR/AsmWriter.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 3c15784a0ed5eb..2c3929650dc3b3 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -2858,6 +2858,8 @@ void AssemblyWriter::printModule(const Module *M) {
Out << "\"\n";
}
+ Out << "\n\n ; Testing to print my name : Sabari\n\n";
+
const std::string &DL = M->getDataLayoutStr();
if (!DL.empty())
Out << "target datalayout = \"" << DL << "\"\n";
More information about the llvm-commits
mailing list