diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-13 23:01:12 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-13 23:01:12 +0000 |
commit | 1e692ace08959399794363e77499b73da5494af9 (patch) | |
tree | f3b2a525ece7b5a7ad2df5328e1d46db215aef4c /lib/CodeGen/CodeGenFunction.cpp | |
parent | ed6c70f63067ec06757aa019750765b80e23b423 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<ObjCMethodDecl>(CurFuncDecl)) { llvm::Value *SelfPtr = LocalDeclMap[&(*OMD->getSelfDecl())]; + // FIXME: Volatility return Builder.CreateLoad(SelfPtr, "self"); } return NULL; |