changeset 228:c2fc9aeb158b

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 19 Jul 2021 06:59:53 +0900
parents 21e6aa2e49ef
children cf4f212398d7
files clang/lib/CodeGen/TargetInfo.cpp
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/clang/lib/CodeGen/TargetInfo.cpp	Mon Jul 19 06:57:16 2021 +0900
+++ b/clang/lib/CodeGen/TargetInfo.cpp	Mon Jul 19 06:59:53 2021 +0900
@@ -8210,19 +8210,6 @@
     return TargetCodeGenInfo::getGlobalVarAddressSpace(CGM, D);
   }
 
-  LangAS getGlobalVarAddressSpace(CodeGenModule &CGM,
-                                  const VarDecl *D) const override {
-    // Check if a global/static variable is defined within address space 1
-    // but not constant.
-    LangAS AS = D->getType().getAddressSpace();
-    if (isTargetAddressSpace(AS) && toTargetAddressSpace(AS) == 1 &&
-        !D->getType().isConstQualified())
-      CGM.getDiags().Report(D->getLocation(),
-                            diag::err_verify_nonconst_addrspace)
-          << "__flash";
-    return TargetCodeGenInfo::getGlobalVarAddressSpace(CGM, D);
-  }
-
   void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
                            CodeGen::CodeGenModule &CGM) const override {
     if (GV->isDeclaration())