Basic support for volatile loads and stores. Stores the volatile 
qualifier in the lvalue, and changes lvalue loads/stores to honor 
the volatile flag.  Places which need some further attention are marked 
with FIXMEs.

Patch by Cédric Venet.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52264 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 1557738..c8ef8fc 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -114,6 +114,7 @@
                                    AllocaInsertPt);
 
   // Store the initial value into the alloca.
+  // FIXME: volatility
   Builder.CreateStore(AI, DeclPtr);
   DMEntry = DeclPtr;
   ++AI; ++AI;
@@ -152,6 +153,7 @@
 {
   if(const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(CurFuncDecl)) {
     llvm::Value *SelfPtr = LocalDeclMap[&(*OMD->getSelfDecl())];
+    // FIXME: Volatility
     return Builder.CreateLoad(SelfPtr, "self");
   }
   return NULL;