summaryrefslogtreecommitdiff
path: root/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-08-31 22:55:11 +0000
committerKevin Enderby <enderby@apple.com>2010-08-31 22:55:11 +0000
commit232ab949d5ed04c4ab45c763e0597fc3fc3fa5bc (patch)
tree7f3123d779db548a2c6c6f3eb3d323e04a021f6f /lib/MC/MCContext.cpp
parent3f19c091bf9cfe717e14b8a1967085ba84db3877 (diff)
downloadllvm-232ab949d5ed04c4ab45c763e0597fc3fc3fa5bc.tar.gz
llvm-232ab949d5ed04c4ab45c763e0597fc3fc3fa5bc.tar.bz2
llvm-232ab949d5ed04c4ab45c763e0597fc3fc3fa5bc.tar.xz
This is the second of three patches to implement support for the .loc directive
and output the dwarf line number tables. This takes the current loc info after an instruction is assembled and saves the needed info into an object that has vector and for each section. These objects will be used for the final patch to build and emit the encoded dwarf line number tables. Again for now this is only in the Mach-O streamer but at some point will move to a more generic place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r--lib/MC/MCContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp
index 13cf9a8048..e5586a0d7c 100644
--- a/lib/MC/MCContext.cpp
+++ b/lib/MC/MCContext.cpp
@@ -227,7 +227,7 @@ unsigned MCContext::GetDwarfFile(StringRef FileName, unsigned FileNumber) {
Name = Slash.second;
for (DirIndex = 0; DirIndex < MCDwarfDirs.size(); DirIndex++) {
if (Directory == MCDwarfDirs[DirIndex])
- break;
+ break;
}
if (DirIndex >= MCDwarfDirs.size()) {
char *Buf = static_cast<char *>(Allocate(Directory.size()));