Build shared lib instead of an archive.
[oota-llvm.git] / lib / Target / PIC16 / PIC16TargetObjectFile.cpp
index 11c579cc570067d528b7b97e671d6dc31c8d27b2..7eedf7fe2356ddb68b94e21c915b62af8f9b90a9 100644 (file)
@@ -25,6 +25,18 @@ PIC16TargetObjectFile::PIC16TargetObjectFile() {
 PIC16TargetObjectFile::~PIC16TargetObjectFile() {
 }
 
+/// Find a pic16 section. Return null if not found. Do not create one.
+PIC16Section *PIC16TargetObjectFile::
+findPIC16Section(const std::string &Name) {
+  /// Return if we have an already existing one.
+  PIC16Section *Entry = SectionsByName[Name];
+  if (Entry)
+    return Entry;
+
+  return NULL;
+}
+
+
 /// Find a pic16 section. If not found, create one.
 PIC16Section *PIC16TargetObjectFile::
 getPIC16Section(const std::string &Name, PIC16SectionType Ty,