aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-05 17:31:22 +0000
committerDevang Patel <dpatel@apple.com>2009-01-05 17:31:22 +0000
commit8a84e4402a1ab7ff36f52acdf5e1891e283a947e (patch)
treee10fab3f772d2a848ee01ce0b7658752913cd1cc /lib/Target
parent8f56ebaf5cdd9e1c6579e0d637ccc65c6aea0726 (diff)
downloadexternal_llvm-8a84e4402a1ab7ff36f52acdf5e1891e283a947e.zip
external_llvm-8a84e4402a1ab7ff36f52acdf5e1891e283a947e.tar.gz
external_llvm-8a84e4402a1ab7ff36f52acdf5e1891e283a947e.tar.bz2
squash warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/DarwinTargetAsmInfo.cpp1
-rw-r--r--lib/Target/ELFTargetAsmInfo.cpp2
-rw-r--r--lib/Target/TargetAsmInfo.cpp1
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp2
-rw-r--r--lib/Target/X86/X86TargetAsmInfo.cpp1
5 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp
index cb73d31..7121cab 100644
--- a/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/lib/Target/DarwinTargetAsmInfo.cpp
@@ -108,6 +108,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
}
// FIXME: Do we have any extra special weird cases?
+ return NULL;
}
const Section*
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index 47727d1..76e0b1b 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/lib/Target/ELFTargetAsmInfo.cpp
@@ -86,6 +86,8 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
}
} else
assert(0 && "Unsupported global");
+
+ return NULL;
}
const Section*
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index 5cf298a..0cf969c 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -342,6 +342,7 @@ TargetAsmInfo::UniqueSectionForGlobal(const GlobalValue* GV,
default:
assert(0 && "Unknown section kind");
}
+ return NULL;
}
const Section*
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 5ed6342..c282f91 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1255,7 +1255,7 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDValue Op, SelectionDAG &DAG) {
if (VA.isRegLoc()) {
MVT RegVT = VA.getLocVT();
- TargetRegisterClass *RC;
+ TargetRegisterClass *RC = NULL;
if (RegVT == MVT::i32)
RC = X86::GR32RegisterClass;
else if (Is64Bit && RegVT == MVT::i64)
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp
index de655e7..1cf859b 100644
--- a/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -319,6 +319,7 @@ X86COFFTargetAsmInfo::UniqueSectionForGlobal(const GlobalValue* GV,
default:
assert(0 && "Unknown section kind");
}
+ return NULL;
}
std::string X86COFFTargetAsmInfo::printSectionFlags(unsigned flags) const {