Add experimental support for address space qualified types. Address space
qualifiers use the __attribute__((address_space(id))) syntax.
llvm-svn: 46691
diff --git a/clang/CodeGen/CGDecl.cpp b/clang/CodeGen/CGDecl.cpp
index 23c707d..a6c5da7 100644
--- a/clang/CodeGen/CGDecl.cpp
+++ b/clang/CodeGen/CGDecl.cpp
@@ -84,7 +84,8 @@
DMEntry =
new llvm::GlobalVariable(LTy, false,
llvm::GlobalValue::InternalLinkage,
- Init, D.getName(), &CGM.getModule());
+ Init, D.getName(), &CGM.getModule(), 0,
+ Ty.getAddressSpace());
}