bulbazord added a comment.
Looks like this actually causes TestDebuggerAPI.py to segfault because
SBPlatform::SetSDKRoot can take `nullptr` for its argument, and the conversion
from `nullptr -> std::string` blows up. I'm fixing that in
https://reviews.llvm.org/D152962.
Repository:
rG LLVM G
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf4be9ff6458f: [lldb][NFCI] Platforms should own their
SDKBuild and SDKRootDirectory strings (authored by bulbazord).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm
bulbazord updated this revision to Diff 531104.
bulbazord added a comment.
Avoid construction of temporary std::string
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152331/new/
https://reviews.llvm.org/D152331
Files:
lldb/include/lldb/Interprete
bulbazord updated this revision to Diff 531103.
bulbazord added a comment.
Update other 2 functions (and one callsite)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152331/new/
https://reviews.llvm.org/D152331
Files:
lldb/include/lldb/Interprete
JDevlieghere accepted this revision.
JDevlieghere added a comment.
This revision is now accepted and ready to land.
LGTM with the other two functions updated as well.
Comment at: lldb/include/lldb/Target/Platform.h:453
- void SetSDKRootDirectory(ConstString dir) { m_sdk_sysr
bulbazord updated this revision to Diff 531084.
bulbazord added a comment.
Implement Jonas's suggestion
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152331/new/
https://reviews.llvm.org/D152331
Files:
lldb/include/lldb/Interpreter/OptionGroupPl
JDevlieghere added inline comments.
Comment at: lldb/include/lldb/Interpreter/OptionGroupPlatform.h:52
- void SetSDKRootDirectory(ConstString sdk_root_directory) {
-m_sdk_sysroot = sdk_root_directory;
+ void SetSDKRootDirectory(llvm::StringRef sdk_root_directory) {
+m
bulbazord added inline comments.
Comment at: lldb/include/lldb/Interpreter/OptionGroupPlatform.h:52
- void SetSDKRootDirectory(ConstString sdk_root_directory) {
-m_sdk_sysroot = sdk_root_directory;
+ void SetSDKRootDirectory(llvm::StringRef sdk_root_directory) {
+m_sd
JDevlieghere requested changes to this revision.
JDevlieghere added inline comments.
This revision now requires changes to proceed.
Comment at: lldb/include/lldb/Interpreter/OptionGroupPlatform.h:52
- void SetSDKRootDirectory(ConstString sdk_root_directory) {
-m_sdk_sysroo
bulbazord created this revision.
bulbazord added reviewers: JDevlieghere, mib, jingham.
Herald added a project: All.
bulbazord requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
These don't need to be ConstStrings. They don't really benefit mu
10 matches
Mail list logo