diff options
| author | Eric Christopher <echristo@gmail.com> | 2018-07-31 23:53:24 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2018-07-31 23:53:24 +0000 |
| commit | 83c49e8ed407ae60e1d82f389780a4fc5e9b430f (patch) | |
| tree | 72f10dd55eef0a87dfb6d71e8710b45a5d56b974 /lldb/source/Plugins/Platform/Android | |
| parent | 852e88ad852f9e32b971d478c99fa88a8da968d2 (diff) | |
| download | bcm5719-llvm-83c49e8ed407ae60e1d82f389780a4fc5e9b430f.tar.gz bcm5719-llvm-83c49e8ed407ae60e1d82f389780a4fc5e9b430f.zip | |
Android is an environment and we were comparing the android triple
against the OS rather than the environment. Also update other
uses of OS when we meant environment in the android local code.
NFC intended.
llvm-svn: 338460
Diffstat (limited to 'lldb/source/Plugins/Platform/Android')
| -rw-r--r-- | lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp index be7b745a3a2..4477fe371d3 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp @@ -95,7 +95,7 @@ PlatformSP PlatformAndroid::CreateInstance(bool force, const ArchSpec *arch) { } if (create) { - switch (triple.getOS()) { + switch (triple.getEnvironment()) { case llvm::Triple::Android: break; @@ -103,8 +103,8 @@ PlatformSP PlatformAndroid::CreateInstance(bool force, const ArchSpec *arch) { // Only accept "unknown" for the OS if the host is android and it // "unknown" wasn't specified (it was just returned because it was NOT // specified) - case llvm::Triple::OSType::UnknownOS: - create = !arch->TripleOSWasSpecified(); + case llvm::Triple::EnvironmentType::UnknownEnvironment: + create = !arch->TripleEnvironmentWasSpecified(); break; #endif default: |

