From 742ef260fb959b7c96319c111781e303b397a5da Mon Sep 17 00:00:00 2001 From: invalid Date: Mon, 26 Aug 2024 21:52:42 +0800 Subject: [PATCH] # cleanup some dirty strings,still hot. --- llvm/lib/Target/X86/X86AsmPrinter.cpp | 2 +- llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp index da4ff0e494f1..f2bd83b353ad 100644 --- a/llvm/lib/Target/X86/X86AsmPrinter.cpp +++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp @@ -928,7 +928,7 @@ void X86AsmPrinter::emitStartOfAsmFile(Module &M) { COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ, SectionKind::getReadOnly()); OutStreamer->switchSection(Nt); - OutStreamer->emitBytes(StringRef("Riot", 88)); + OutStreamer->emitBytes(StringRef("New World coming soon", 22)); OutStreamer->endSection(Nt); OutStreamer->switchSection(Cur); #endif diff --git a/llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp b/llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp index 1083ffe55d87..4fc0d0afa875 100644 --- a/llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp +++ b/llvm/lib/Transforms/IPO/WelComeToLLVMMSVC.cpp @@ -29,7 +29,7 @@ PreservedAnalyses WelcomeToLLVMMSVCPass::run(Module &M, if (Enable) { if (!M.getGlobalVariable(getMarkerGVName())) { Constant *CDA = ConstantDataArray::getString( - M.getContext(), "Roit", false); + M.getContext(), "Welcome to use llvm-msvc.", false); GlobalVariable *GV = new GlobalVariable(M, CDA->getType(), true, GlobalValue::LinkOnceODRLinkage, CDA, getMarkerGVName());