diff options
| author | Sagar Thakur <sagar.thakur@imgtec.com> | 2016-05-13 11:04:47 +0000 |
|---|---|---|
| committer | Sagar Thakur <sagar.thakur@imgtec.com> | 2016-05-13 11:04:47 +0000 |
| commit | adc1abe77ef8f582c81e7df653a0ab3411de38fe (patch) | |
| tree | 67e07f365f4d45eddd475dea6eb504f1cc710613 /lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h | |
| parent | 6ec636d21e61ed4b9f2d2b4b357e220d398b8e64 (diff) | |
| download | bcm5719-llvm-adc1abe77ef8f582c81e7df653a0ab3411de38fe.tar.gz bcm5719-llvm-adc1abe77ef8f582c81e7df653a0ab3411de38fe.zip | |
[LLDB][MIPS] Provide ABI string to compiler for appropriate code generation for MIPS
Patch by Nitesh Jain.
Summary: These patch will set clang::TargetOptions::ABI and accordingly code will be generated for MIPS target.
Reviewers: ovyalov, clayborg
Subscribers: lldb-commits, mohit.bhakkad, sagar, jaydeep, bhushan
Differential: D18638
llvm-svn: 269407
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h index 115067b4307..34c0212b73a 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h @@ -137,7 +137,19 @@ public: Error RunStaticInitializers (lldb::IRExecutionUnitSP &execution_unit_sp, ExecutionContext &exe_ctx); - + + //------------------------------------------------------------------ + /// Returns a string representing current ABI. + /// + /// @param[in] target_arch + /// The target architecture. + /// + /// @return + /// A string representing target ABI for the current architecture. + //------------------------------------------------------------------- + std::string + GetClangTargetABI (const ArchSpec &target_arch); + private: std::unique_ptr<llvm::LLVMContext> m_llvm_context; ///< The LLVM context to generate IR into std::unique_ptr<clang::FileManager> m_file_manager; ///< The Clang file manager object used by the compiler |

