aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Sehr <sehr@chromium.org>2012-11-30 09:55:11 -0800
committerDavid Sehr <sehr@chromium.org>2012-11-30 09:55:11 -0800
commit66d7c5b124f7d2bca98460d73fbb10096321eaac (patch)
treeafd4a841684ccb33e7134fa56ad0018c7eb327c7 /lib/CodeGen
parentffb0eedef4f034996ce59aac3176482617a8044c (diff)
Use isOSNaCl and minimize some LOCALMODs
Another try after fumble-fingering git repos for https://codereview.chromium.org/11428097/ BUG= Review URL: https://codereview.chromium.org/11415231
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 15fb9cb5f2..1a9deb6641 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -647,7 +647,7 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
CompilationDir = DIUnit.getDirectory();
// @LOCALMOD-BEGIN
unsigned ID;
- if (Triple(Asm->TM.getTargetTriple()).getOS() == Triple::NativeClient) {
+ if (Triple(Asm->TM.getTargetTriple()).isOSNaCl()) {
ID = getOrCreateCompileUnitID(FN, CompilationDir, N);
} else {
ID = getOrCreateSourceID(FN, CompilationDir);