summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-11-14 07:22:25 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-11-14 07:22:25 +0000
commitd03742a1227ab9d858e25bbf5a14fbc02712adc1 (patch)
tree246725f9fb342239d5c89c249022fed4d1f1e937 /llvm/lib/Target/PIC16
parent8f9c22646bfcbc311daf1cfcc82523af7f528ac2 (diff)
downloadbcm5719-llvm-d03742a1227ab9d858e25bbf5a14fbc02712adc1.tar.gz
bcm5719-llvm-d03742a1227ab9d858e25bbf5a14fbc02712adc1.zip
revert 88761 as it fails builds.
llvm-svn: 88762
Diffstat (limited to 'llvm/lib/Target/PIC16')
-rw-r--r--llvm/lib/Target/PIC16/PIC16DebugInfo.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp b/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp
index 49df457af7e..0ed44d21fc4 100644
--- a/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp
+++ b/llvm/lib/Target/PIC16/PIC16DebugInfo.cpp
@@ -467,18 +467,12 @@ void PIC16DbgInfo::EmitVarDebugInfo(Module &M) {
void PIC16DbgInfo::SwitchToCU(MDNode *CU) {
// Get the file path from CU.
DICompileUnit cu(CU);
- std::string FilePath = "";
- if (cu.getDirectory()) {
- std::string DirName = cu.getDirectory();
- FilePath = FilePath + DirName + "/";
- }
- if (cu.getFilename()) {
- std::string FileName = cu.getFilename();
- FilePath = FilePath + FileName;
- }
+ std::string DirName = cu.getDirectory();
+ std::string FileName = cu.getFilename();
+ std::string FilePath = DirName + "/" + FileName;
- // Nothing to do if source file is still same or it is empty.
- if ( FilePath == CurFile || FilePath == "") return;
+ // Nothing to do if source file is still same.
+ if ( FilePath == CurFile ) return;
// Else, close the current one and start a new.
if (CurFile != "") O << "\n\t.eof";
OpenPOWER on IntegriCloud