[flang-commits] [compiler-rt] [clang-tools-extra] [llvm] [libc] [clang] [flang] Refactor clang::Linkage (PR #80063)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 30 13:51:04 PST 2024


https://github.com/Kaur-sukhmani updated https://github.com/llvm/llvm-project/pull/80063

>From c0ba8ba70d545ad0cbeb9d90c3fb0826681c3c5f Mon Sep 17 00:00:00 2001
From: Sukhmani <ksukhmani0910 at chromium.org>
Date: Wed, 31 Jan 2024 03:06:36 +0530
Subject: [PATCH 1/2]  Refactor clang::Linkage

---
 clang/lib/AST/APValue.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp
index 4eae308ef5b34..5ed64524c3097 100644
--- a/clang/lib/AST/APValue.cpp
+++ b/clang/lib/AST/APValue.cpp
@@ -22,6 +22,14 @@
 #include "llvm/Support/raw_ostream.h"
 using namespace clang;
 
+
+enum Linkage {
+ Invalid = 0,
+ External = 1,
+ Internal = 2,
+};
+
+
 /// The identity of a type_info object depends on the canonical unqualified
 /// type only.
 TypeInfoLValue::TypeInfoLValue(const Type *T)
@@ -157,7 +165,6 @@ void APValue::LValuePathEntry::Profile(llvm::FoldingSetNodeID &ID) const {
 APValue::LValuePathSerializationHelper::LValuePathSerializationHelper(
     ArrayRef<LValuePathEntry> Path, QualType ElemTy)
     : Ty((const void *)ElemTy.getTypePtrOrNull()), Path(Path) {}
-
 QualType APValue::LValuePathSerializationHelper::getType() {
   return QualType::getFromOpaquePtr(Ty);
 }

>From 0ef158d19357770462a2338486bc0c3f0bbea83c Mon Sep 17 00:00:00 2001
From: Sukhmani <ksukhmani0910 at chromium.org>
Date: Wed, 31 Jan 2024 03:13:53 +0530
Subject: [PATCH 2/2]  Refactor clang::Linkage

---
 clang/lib/AST/APValue.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp
index 5ed64524c3097..04ba41b49b5d5 100644
--- a/clang/lib/AST/APValue.cpp
+++ b/clang/lib/AST/APValue.cpp
@@ -22,14 +22,6 @@
 #include "llvm/Support/raw_ostream.h"
 using namespace clang;
 
-
-enum Linkage {
- Invalid = 0,
- External = 1,
- Internal = 2,
-};
-
-
 /// The identity of a type_info object depends on the canonical unqualified
 /// type only.
 TypeInfoLValue::TypeInfoLValue(const Type *T)



More information about the flang-commits mailing list