[llvm] [NFCI][Globals]For GlobalObjects, add updateSectionPrefix and change setSectionPrefix to handle empty strings (PR #158460)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 23:53:17 PDT 2025


================
@@ -0,0 +1,76 @@
+//===- GlobalObjectTest.cpp - Global object unit tests --------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/IR/GlobalObject.h"
+#include "llvm-c/Core.h"
----------------
snehasish wrote:

I wonder what this header is used for?

https://github.com/llvm/llvm-project/pull/158460


More information about the llvm-commits mailing list