diff options
author | Logan Chien <loganchien@google.com> | 2011-07-20 22:06:52 +0800 |
---|---|---|
committer | Logan Chien <loganchien@google.com> | 2011-07-20 22:10:53 +0800 |
commit | ab992e59a36a18df49bf4878968ef0598299afd3 (patch) | |
tree | 64d551db9c32b16a916efe8cdaf8f94707ed4bba /slang_rs_object_ref_count.cpp | |
parent | a67e4451d0d03b4ab7866b64807d95a8399c73a0 (diff) | |
download | android_frameworks_compile_slang-ab992e59a36a18df49bf4878968ef0598299afd3.tar.gz android_frameworks_compile_slang-ab992e59a36a18df49bf4878968ef0598299afd3.tar.bz2 android_frameworks_compile_slang-ab992e59a36a18df49bf4878968ef0598299afd3.zip |
Apply changes to migrate to llvm upstream r135568.
- Remove the const qualifier of llvm::Type and
llvm::PointerType due to the API change.
- Update the relocation model setup code, since
llvm::TargetMachine changes the API.
- Qualify dyn_cast with llvm namespace.
Change-Id: I4820fb86effc3a62569e19a6a8753ba9e960f6b2
Diffstat (limited to 'slang_rs_object_ref_count.cpp')
-rw-r--r-- | slang_rs_object_ref_count.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slang_rs_object_ref_count.cpp b/slang_rs_object_ref_count.cpp index 131a086..a54fdd0 100644 --- a/slang_rs_object_ref_count.cpp +++ b/slang_rs_object_ref_count.cpp @@ -227,7 +227,8 @@ class DestructorVisitor : public clang::StmtVisitor<DestructorVisitor> { RSASTReplace R(mCtx); R.ReplaceStmt(mOuterStmt, S, CS); } - clang::CompoundStmt *CS = dyn_cast<clang::CompoundStmt>(mOuterStmt); + clang::CompoundStmt *CS = + llvm::dyn_cast<clang::CompoundStmt>(mOuterStmt); slangAssert(CS); if (CS) { AppendAfterStmt(mCtx, CS, NULL, mStmtList); |