blob: a009cf59d6917c0bec27dcf72bc4cc14d44dfe32 [file] [log] [blame]
Chris Lattnera58d2be2003-09-30 03:24:28 +00001//===- Linker.cpp - Link together LLVM objects and libraries --------------===//
John Criswell7c0e0222003-10-20 17:47:21 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
John Criswell71478b72003-09-19 20:24:23 +00009//
Chris Lattnera58d2be2003-09-30 03:24:28 +000010// This file contains routines to handle linking together LLVM bytecode files,
11// and to handle annoying things like static libraries.
John Criswell71478b72003-09-19 20:24:23 +000012//
13//===----------------------------------------------------------------------===//
14
Misha Brukman17dc4ce2003-09-29 22:16:43 +000015#include "gccld.h"
John Criswell71478b72003-09-19 20:24:23 +000016#include "llvm/Module.h"
17#include "llvm/PassManager.h"
18#include "llvm/Bytecode/Reader.h"
19#include "llvm/Bytecode/WriteBytecodePass.h"
20#include "llvm/Target/TargetData.h"
21#include "llvm/Transforms/IPO.h"
22#include "llvm/Transforms/Scalar.h"
Misha Brukman17dc4ce2003-09-29 22:16:43 +000023#include "llvm/Transforms/Utils/Linker.h"
John Criswell71478b72003-09-19 20:24:23 +000024#include "Support/CommandLine.h"
Misha Brukman17dc4ce2003-09-29 22:16:43 +000025#include "Support/FileUtilities.h"
John Criswell71478b72003-09-19 20:24:23 +000026#include "Support/Signals.h"
Misha Brukman17dc4ce2003-09-29 22:16:43 +000027#include "Support/SystemUtils.h"
Misha Brukman17dc4ce2003-09-29 22:16:43 +000028#include <algorithm>
John Criswell71478b72003-09-19 20:24:23 +000029#include <fstream>
30#include <memory>
31#include <set>
John Criswell71478b72003-09-19 20:24:23 +000032
Brian Gaeked0fde302003-11-11 22:41:34 +000033namespace llvm {
34
Brian Gaeke0d723ac2003-11-11 21:54:01 +000035/// FindLib - Try to convert Filename into the name of a file that we can open,
36/// if it does not already name a file we can open, by first trying to open
37/// Filename, then libFilename.<suffix> for each of a set of several common
38/// library suffixes, in each of the directories in Paths and the directory
39/// named by the value of the environment variable LLVM_LIB_SEARCH_PATH. Returns
40/// an empty string if no matching file can be found.
Misha Brukman5208ba12003-09-30 18:09:32 +000041///
Misha Brukman84fbc652003-11-20 19:08:06 +000042std::string FindLib(const std::string &Filename,
43 const std::vector<std::string> &Paths,
44 bool SharedObjectOnly) {
John Criswell71478b72003-09-19 20:24:23 +000045 // Determine if the pathname can be found as it stands.
Brian Gaekeee8adb12003-11-11 18:27:37 +000046 if (FileOpenable(Filename))
John Criswell71478b72003-09-19 20:24:23 +000047 return Filename;
John Criswell71478b72003-09-19 20:24:23 +000048
John Criswell71478b72003-09-19 20:24:23 +000049 // If that doesn't work, convert the name into a library name.
John Criswell71478b72003-09-19 20:24:23 +000050 std::string LibName = "lib" + Filename;
51
John Criswell71478b72003-09-19 20:24:23 +000052 // Iterate over the directories in Paths to see if we can find the library
53 // there.
Misha Brukman17dc4ce2003-09-29 22:16:43 +000054 for (unsigned Index = 0; Index != Paths.size(); ++Index) {
John Criswell71478b72003-09-19 20:24:23 +000055 std::string Directory = Paths[Index] + "/";
56
Misha Brukman84fbc652003-11-20 19:08:06 +000057 if (!SharedObjectOnly && FileOpenable(Directory + LibName + ".bc"))
John Criswell71478b72003-09-19 20:24:23 +000058 return Directory + LibName + ".bc";
John Criswell71478b72003-09-19 20:24:23 +000059
Brian Gaekeee8adb12003-11-11 18:27:37 +000060 if (FileOpenable(Directory + LibName + ".so"))
John Criswell71478b72003-09-19 20:24:23 +000061 return Directory + LibName + ".so";
John Criswell71478b72003-09-19 20:24:23 +000062
Misha Brukman84fbc652003-11-20 19:08:06 +000063 if (!SharedObjectOnly && FileOpenable(Directory + LibName + ".a"))
John Criswell71478b72003-09-19 20:24:23 +000064 return Directory + LibName + ".a";
John Criswell71478b72003-09-19 20:24:23 +000065 }
66
John Criswell71478b72003-09-19 20:24:23 +000067 // One last hope: Check LLVM_LIB_SEARCH_PATH.
John Criswell71478b72003-09-19 20:24:23 +000068 char *SearchPath = getenv("LLVM_LIB_SEARCH_PATH");
69 if (SearchPath == NULL)
Misha Brukman17dc4ce2003-09-29 22:16:43 +000070 return std::string();
John Criswell71478b72003-09-19 20:24:23 +000071
72 LibName = std::string(SearchPath) + "/" + LibName;
Brian Gaekeee8adb12003-11-11 18:27:37 +000073 if (FileOpenable(LibName))
John Criswell71478b72003-09-19 20:24:23 +000074 return LibName;
John Criswell71478b72003-09-19 20:24:23 +000075
76 return std::string();
77}
78
Brian Gaeke3b3640a2003-11-05 22:12:52 +000079/// GetAllDefinedSymbols - Modifies its parameter DefinedSymbols to contain the
80/// name of each externally-visible symbol defined in M.
Misha Brukman5208ba12003-09-30 18:09:32 +000081///
Misha Brukman61087cc2003-09-30 17:51:20 +000082void GetAllDefinedSymbols(Module *M, std::set<std::string> &DefinedSymbols) {
John Criswell71478b72003-09-19 20:24:23 +000083 for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
84 if (I->hasName() && !I->isExternal() && !I->hasInternalLinkage())
85 DefinedSymbols.insert(I->getName());
86 for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
87 if (I->hasName() && !I->isExternal() && !I->hasInternalLinkage())
88 DefinedSymbols.insert(I->getName());
89}
90
Misha Brukman5208ba12003-09-30 18:09:32 +000091/// GetAllUndefinedSymbols - calculates the set of undefined symbols that still
92/// exist in an LLVM module. This is a bit tricky because there may be two
93/// symbols with the same name but different LLVM types that will be resolved to
94/// each other but aren't currently (thus we need to treat it as resolved).
95///
96/// Inputs:
97/// M - The module in which to find undefined symbols.
98///
99/// Outputs:
100/// UndefinedSymbols - A set of C++ strings containing the name of all
101/// undefined symbols.
102///
John Criswell71478b72003-09-19 20:24:23 +0000103void
Misha Brukman61087cc2003-09-30 17:51:20 +0000104GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols) {
John Criswell71478b72003-09-19 20:24:23 +0000105 std::set<std::string> DefinedSymbols;
106 UndefinedSymbols.clear(); // Start out empty
107
108 for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
109 if (I->hasName()) {
110 if (I->isExternal())
111 UndefinedSymbols.insert(I->getName());
112 else if (!I->hasInternalLinkage())
113 DefinedSymbols.insert(I->getName());
114 }
115 for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
116 if (I->hasName()) {
117 if (I->isExternal())
118 UndefinedSymbols.insert(I->getName());
119 else if (!I->hasInternalLinkage())
120 DefinedSymbols.insert(I->getName());
121 }
122
123 // Prune out any defined symbols from the undefined symbols set...
124 for (std::set<std::string>::iterator I = UndefinedSymbols.begin();
125 I != UndefinedSymbols.end(); )
126 if (DefinedSymbols.count(*I))
127 UndefinedSymbols.erase(I++); // This symbol really is defined!
128 else
129 ++I; // Keep this symbol in the undefined symbols list
130}
131
132
Brian Gaeke0d723ac2003-11-11 21:54:01 +0000133/// LoadObject - Read in and parse the bytecode file named by FN and return the
134/// module it contains (wrapped in an auto_ptr), or 0 and set ErrorMessage if an
135/// error occurs.
Misha Brukman5208ba12003-09-30 18:09:32 +0000136///
Brian Gaeke0d723ac2003-11-11 21:54:01 +0000137std::auto_ptr<Module> LoadObject(const std::string &FN,
138 std::string &ErrorMessage) {
139 std::string ParserErrorMessage;
140 Module *Result = ParseBytecodeFile(FN, &ParserErrorMessage);
John Criswell71478b72003-09-19 20:24:23 +0000141 if (Result) return std::auto_ptr<Module>(Result);
Brian Gaeke0d723ac2003-11-11 21:54:01 +0000142 ErrorMessage = "Bytecode file '" + FN + "' could not be loaded";
143 if (ParserErrorMessage.size()) ErrorMessage += ": " + ParserErrorMessage;
John Criswell71478b72003-09-19 20:24:23 +0000144 return std::auto_ptr<Module>();
145}
146
Misha Brukman5208ba12003-09-30 18:09:32 +0000147/// LinkInArchive - opens an archive library and link in all objects which
148/// provide symbols that are currently undefined.
149///
150/// Inputs:
151/// M - The module in which to link the archives.
152/// Filename - The pathname of the archive.
153/// Verbose - Flags whether verbose messages should be printed.
154///
155/// Outputs:
156/// ErrorMessage - A C++ string detailing what error occurred, if any.
157///
158/// Return Value:
159/// TRUE - An error occurred.
160/// FALSE - No errors.
161///
Misha Brukmane6763132003-09-29 22:26:24 +0000162static bool LinkInArchive(Module *M,
163 const std::string &Filename,
164 std::string &ErrorMessage,
165 bool Verbose)
John Criswell71478b72003-09-19 20:24:23 +0000166{
John Criswell71478b72003-09-19 20:24:23 +0000167 // Find all of the symbols currently undefined in the bytecode program.
168 // If all the symbols are defined, the program is complete, and there is
169 // no reason to link in any archive files.
John Criswell71478b72003-09-19 20:24:23 +0000170 std::set<std::string> UndefinedSymbols;
Misha Brukmane6763132003-09-29 22:26:24 +0000171 GetAllUndefinedSymbols(M, UndefinedSymbols);
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000172 if (UndefinedSymbols.empty()) {
John Criswell71478b72003-09-19 20:24:23 +0000173 if (Verbose) std::cerr << " No symbols undefined, don't link library!\n";
174 return false; // No need to link anything in!
175 }
176
John Criswell71478b72003-09-19 20:24:23 +0000177 // Load in the archive objects.
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000178 if (Verbose) std::cerr << " Loading archive file '" << Filename << "'\n";
John Criswell71478b72003-09-19 20:24:23 +0000179 std::vector<Module*> Objects;
Misha Brukmane6763132003-09-29 22:26:24 +0000180 if (ReadArchiveFile(Filename, Objects, &ErrorMessage))
John Criswell71478b72003-09-19 20:24:23 +0000181 return true;
John Criswell71478b72003-09-19 20:24:23 +0000182
John Criswell71478b72003-09-19 20:24:23 +0000183 // Figure out which symbols are defined by all of the modules in the archive.
John Criswell71478b72003-09-19 20:24:23 +0000184 std::vector<std::set<std::string> > DefinedSymbols;
Misha Brukmane6763132003-09-29 22:26:24 +0000185 DefinedSymbols.resize(Objects.size());
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000186 for (unsigned i = 0; i != Objects.size(); ++i) {
John Criswell71478b72003-09-19 20:24:23 +0000187 GetAllDefinedSymbols(Objects[i], DefinedSymbols[i]);
188 }
189
190 // While we are linking in object files, loop.
191 bool Linked = true;
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000192 while (Linked) {
John Criswell71478b72003-09-19 20:24:23 +0000193 Linked = false;
194
195 for (unsigned i = 0; i != Objects.size(); ++i) {
196 // Consider whether we need to link in this module... we only need to
197 // link it in if it defines some symbol which is so far undefined.
198 //
199 const std::set<std::string> &DefSymbols = DefinedSymbols[i];
200
201 bool ObjectRequired = false;
202 for (std::set<std::string>::iterator I = UndefinedSymbols.begin(),
203 E = UndefinedSymbols.end(); I != E; ++I)
204 if (DefSymbols.count(*I)) {
205 if (Verbose)
Brian Gaeke2282ae12003-11-16 23:07:13 +0000206 std::cerr << " Found object '"
207 << Objects[i]->getModuleIdentifier ()
208 << "' providing symbol '" << *I << "'...\n";
John Criswell71478b72003-09-19 20:24:23 +0000209 ObjectRequired = true;
210 break;
211 }
212
213 // We DO need to link this object into the program...
214 if (ObjectRequired) {
215 if (LinkModules(M, Objects[i], &ErrorMessage))
216 return true; // Couldn't link in the right object file...
217
218 // Since we have linked in this object, delete it from the list of
219 // objects to consider in this archive file.
220 std::swap(Objects[i], Objects.back());
221 std::swap(DefinedSymbols[i], DefinedSymbols.back());
222 Objects.pop_back();
223 DefinedSymbols.pop_back();
224 --i; // Do not skip an entry
225
226 // The undefined symbols set should have shrunk.
227 GetAllUndefinedSymbols(M, UndefinedSymbols);
228 Linked = true; // We have linked something in!
229 }
230 }
231 }
232
233 return false;
234}
235
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000236/// LinkInFile - opens a bytecode file and links in all objects which
Misha Brukman5208ba12003-09-30 18:09:32 +0000237/// provide symbols that are currently undefined.
238///
239/// Inputs:
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000240/// HeadModule - The module in which to link the bytecode file.
241/// Filename - The pathname of the bytecode file.
Misha Brukman5208ba12003-09-30 18:09:32 +0000242/// Verbose - Flags whether verbose messages should be printed.
243///
244/// Outputs:
245/// ErrorMessage - A C++ string detailing what error occurred, if any.
246///
247/// Return Value:
248/// TRUE - An error occurred.
249/// FALSE - No errors.
250///
Misha Brukmane6763132003-09-29 22:26:24 +0000251static bool LinkInFile(Module *HeadModule,
252 const std::string &Filename,
253 std::string &ErrorMessage,
254 bool Verbose)
John Criswell71478b72003-09-19 20:24:23 +0000255{
256 std::auto_ptr<Module> M(LoadObject(Filename, ErrorMessage));
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000257 if (M.get() == 0) return true;
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000258 bool Result = LinkModules(HeadModule, M.get(), &ErrorMessage);
259 if (Verbose) std::cerr << "Linked in bytecode file '" << Filename << "'\n";
260 return Result;
John Criswell71478b72003-09-19 20:24:23 +0000261}
262
Misha Brukman5208ba12003-09-30 18:09:32 +0000263/// LinkFiles - takes a module and a list of files and links them all together.
264/// It locates the file either in the current directory, as its absolute
265/// or relative pathname, or as a file somewhere in LLVM_LIB_SEARCH_PATH.
266///
267/// Inputs:
268/// progname - The name of the program (infamous argv[0]).
269/// HeadModule - The module under which all files will be linked.
270/// Files - A vector of C++ strings indicating the LLVM bytecode filenames
271/// to be linked. The names can refer to a mixture of pure LLVM
272/// bytecode files and archive (ar) formatted files.
273/// Verbose - Flags whether verbose output should be printed while linking.
274///
275/// Outputs:
276/// HeadModule - The module will have the specified LLVM bytecode files linked
277/// in.
278///
279/// Return value:
280/// FALSE - No errors.
281/// TRUE - Some error occurred.
282///
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000283bool LinkFiles(const char *progname,
284 Module *HeadModule,
285 const std::vector<std::string> &Files,
286 bool Verbose)
John Criswell71478b72003-09-19 20:24:23 +0000287{
288 // String in which to receive error messages.
289 std::string ErrorMessage;
290
291 // Full pathname of the file
292 std::string Pathname;
293
294 // Get the library search path from the environment
295 char *SearchPath = getenv("LLVM_LIB_SEARCH_PATH");
296
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000297 for (unsigned i = 0; i < Files.size(); ++i) {
John Criswell71478b72003-09-19 20:24:23 +0000298 // Determine where this file lives.
Brian Gaekeee8adb12003-11-11 18:27:37 +0000299 if (FileOpenable(Files[i])) {
John Criswell71478b72003-09-19 20:24:23 +0000300 Pathname = Files[i];
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000301 } else {
302 if (SearchPath == NULL) {
Brian Gaeke608e75c2003-10-08 19:09:30 +0000303 std::cerr << progname << ": Cannot find linker input file '"
304 << Files[i] << "'\n";
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000305 std::cerr << progname
306 << ": Warning: Your LLVM_LIB_SEARCH_PATH is unset.\n";
John Criswell71478b72003-09-19 20:24:23 +0000307 return true;
308 }
309
310 Pathname = std::string(SearchPath)+"/"+Files[i];
Brian Gaekeee8adb12003-11-11 18:27:37 +0000311 if (!FileOpenable(Pathname)) {
Brian Gaeke608e75c2003-10-08 19:09:30 +0000312 std::cerr << progname << ": Cannot find linker input file '"
313 << Files[i] << "'\n";
John Criswell71478b72003-09-19 20:24:23 +0000314 return true;
315 }
316 }
317
John Criswell71478b72003-09-19 20:24:23 +0000318 // A user may specify an ar archive without -l, perhaps because it
319 // is not installed as a library. Detect that and link the library.
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000320 if (IsArchive(Pathname)) {
John Criswell71478b72003-09-19 20:24:23 +0000321 if (Verbose)
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000322 std::cerr << "Trying to link archive '" << Pathname << "'\n";
John Criswell71478b72003-09-19 20:24:23 +0000323
Misha Brukmane6763132003-09-29 22:26:24 +0000324 if (LinkInArchive(HeadModule, Pathname, ErrorMessage, Verbose)) {
John Criswell71478b72003-09-19 20:24:23 +0000325 PrintAndReturn(progname, ErrorMessage,
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000326 ": Error linking in archive '" + Pathname + "'");
John Criswell71478b72003-09-19 20:24:23 +0000327 return true;
328 }
Brian Gaekeee8adb12003-11-11 18:27:37 +0000329 } else if (IsBytecode(Pathname)) {
John Criswell71478b72003-09-19 20:24:23 +0000330 if (Verbose)
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000331 std::cerr << "Trying to link bytecode file '" << Pathname << "'\n";
John Criswell71478b72003-09-19 20:24:23 +0000332
Misha Brukmane6763132003-09-29 22:26:24 +0000333 if (LinkInFile(HeadModule, Pathname, ErrorMessage, Verbose)) {
John Criswell71478b72003-09-19 20:24:23 +0000334 PrintAndReturn(progname, ErrorMessage,
Brian Gaeke3b3640a2003-11-05 22:12:52 +0000335 ": Error linking in bytecode file '" + Pathname + "'");
John Criswell71478b72003-09-19 20:24:23 +0000336 return true;
337 }
338 }
339 }
340
341 return false;
342}
343
Misha Brukman5208ba12003-09-30 18:09:32 +0000344/// LinkLibraries - takes the specified library files and links them into the
345/// main bytecode object file.
346///
347/// Inputs:
348/// progname - The name of the program (infamous argv[0]).
349/// HeadModule - The module into which all necessary libraries will be linked.
350/// Libraries - The list of libraries to link into the module.
351/// LibPaths - The list of library paths in which to find libraries.
352/// Verbose - Flags whether verbose messages should be printed.
353/// Native - Flags whether native code is being generated.
354///
355/// Outputs:
356/// HeadModule - The module will have all necessary libraries linked in.
357///
358/// Return value:
359/// FALSE - No error.
360/// TRUE - Error.
361///
Misha Brukmane6763132003-09-29 22:26:24 +0000362bool LinkLibraries(const char *progname,
363 Module *HeadModule,
364 const std::vector<std::string> &Libraries,
365 const std::vector<std::string> &LibPaths,
366 bool Verbose,
367 bool Native)
John Criswell71478b72003-09-19 20:24:23 +0000368{
369 // String in which to receive error messages.
370 std::string ErrorMessage;
371
Brian Gaekef1fce082003-10-21 21:07:12 +0000372 for (unsigned i = 0; i < Libraries.size(); ++i) {
John Criswell71478b72003-09-19 20:24:23 +0000373 // Determine where this library lives.
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000374 std::string Pathname = FindLib(Libraries[i], LibPaths);
375 if (Pathname.empty()) {
John Criswell71478b72003-09-19 20:24:23 +0000376 // If the pathname does not exist, then continue to the next one if
377 // we're doing a native link and give an error if we're doing a bytecode
378 // link.
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000379 if (!Native) {
Brian Gaeke2282ae12003-11-16 23:07:13 +0000380 PrintAndReturn(progname, "Cannot find library -l" + Libraries[i]
381 + "\n");
John Criswell71478b72003-09-19 20:24:23 +0000382 return true;
383 }
384 }
385
John Criswell71478b72003-09-19 20:24:23 +0000386 // A user may specify an ar archive without -l, perhaps because it
387 // is not installed as a library. Detect that and link the library.
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000388 if (IsArchive(Pathname)) {
John Criswell71478b72003-09-19 20:24:23 +0000389 if (Verbose)
Brian Gaeke2282ae12003-11-16 23:07:13 +0000390 std::cerr << "Trying to link archive '" << Pathname << "' (-l"
391 << Libraries[i] << ")\n";
John Criswell71478b72003-09-19 20:24:23 +0000392
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000393 if (LinkInArchive(HeadModule, Pathname, ErrorMessage, Verbose)) {
John Criswell71478b72003-09-19 20:24:23 +0000394 PrintAndReturn(progname, ErrorMessage,
Brian Gaeke2282ae12003-11-16 23:07:13 +0000395 ": Error linking in archive '" + Pathname
396 + "' (-l" + Libraries[i] + ")");
John Criswell71478b72003-09-19 20:24:23 +0000397 return true;
398 }
Brian Gaekeee8adb12003-11-11 18:27:37 +0000399 } else if (IsBytecode(Pathname)) {
John Criswell71478b72003-09-19 20:24:23 +0000400 if (Verbose)
Brian Gaeke2282ae12003-11-16 23:07:13 +0000401 std::cerr << "Trying to link bytecode file '" << Pathname
402 << "' (-l" << Libraries[i] << ")\n";
John Criswell71478b72003-09-19 20:24:23 +0000403
Misha Brukman17dc4ce2003-09-29 22:16:43 +0000404 if (LinkInFile(HeadModule, Pathname, ErrorMessage, Verbose)) {
John Criswell71478b72003-09-19 20:24:23 +0000405 PrintAndReturn(progname, ErrorMessage,
Brian Gaeke2282ae12003-11-16 23:07:13 +0000406 ": error linking in bytecode file '" + Pathname
407 + "' (-l" + Libraries[i] + ")");
John Criswell71478b72003-09-19 20:24:23 +0000408 return true;
409 }
410 }
411 }
412
413 return false;
414}
Brian Gaeked0fde302003-11-11 22:41:34 +0000415
416} // End llvm namespace