From 1e692ace08959399794363e77499b73da5494af9 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 13 Jun 2008 23:01:12 +0000 Subject: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Cédric Venet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52264 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/CodeGen/CodeGenFunction.cpp') diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 1557738ed1..c8ef8fcd33 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -114,6 +114,7 @@ void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) { AllocaInsertPt); // Store the initial value into the alloca. + // FIXME: volatility Builder.CreateStore(AI, DeclPtr); DMEntry = DeclPtr; ++AI; ++AI; @@ -152,6 +153,7 @@ llvm::Value *CodeGenFunction::LoadObjCSelf(void) { if(const ObjCMethodDecl *OMD = dyn_cast(CurFuncDecl)) { llvm::Value *SelfPtr = LocalDeclMap[&(*OMD->getSelfDecl())]; + // FIXME: Volatility return Builder.CreateLoad(SelfPtr, "self"); } return NULL; -- cgit v1.2.3-18-g5258