You should be able to use preprocessing directives to put the file name in a single file, e.g. #file etc.<div><br></div><div>-eric<br><br><div>On Tue Jan 21 2014 at 10:30:36 AM, Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: adrian<br>
Date: Tue Jan 21 12:23:43 2014<br>
New Revision: 199758<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=199758&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=199758&view=rev</a><br>
Log:<br>
revert 199757 for buildbot breakage.<br>
<br>
Removed:<br>
    cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.c<br>
    cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.h<br>
Modified:<br>
    cfe/trunk/lib/CodeGen/<u></u>CGDebugInfo.cpp<br>
<br>
Modified: cfe/trunk/lib/CodeGen/<u></u>CGDebugInfo.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=199758&r1=199757&r2=199758&view=diff" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/cfe/trunk/lib/CodeGen/<u></u>CGDebugInfo.cpp?rev=199758&r1=<u></u>199757&r2=199758&view=diff</a><br>

==============================<u></u>==============================<u></u>==================<br>
--- cfe/trunk/lib/CodeGen/<u></u>CGDebugInfo.cpp (original)<br>
+++ cfe/trunk/lib/CodeGen/<u></u>CGDebugInfo.cpp Tue Jan 21 12:23:43 2014<br>
@@ -739,16 +739,14 @@ llvm::DIType CGDebugInfo::CreateType(con<br>
     return llvm::DIType();<br>
   // We don't set size information, but do specify where the typedef was<br>
   // declared.<br>
-  SourceLocation Loc = Ty->getDecl()->getLocation();<br>
-  llvm::DIFile File = getOrCreateFile(Loc);<br>
-  unsigned Line = getLineNumber(Loc);<br>
+  unsigned Line = getLineNumber(Ty->getDecl()-><u></u>getLocation());<br>
   const TypedefNameDecl *TyDecl = Ty->getDecl();<br>
<br>
   llvm::DIDescriptor TypedefContext =<br>
     getContextDescriptor(cast<<u></u>Decl>(Ty->getDecl()-><u></u>getDeclContext()));<br>
<br>
   return<br>
-    DBuilder.createTypedef(Src, TyDecl->getName(), File, Line, TypedefContext);<br>
+    DBuilder.createTypedef(Src, TyDecl->getName(), Unit, Line, TypedefContext);<br>
 }<br>
<br>
 llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty,<br>
<br>
Removed: cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-info-typedef.c?rev=199757&view=auto" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/cfe/trunk/test/<u></u>CodeGen/debug-info-typedef.c?<u></u>rev=199757&view=auto</a><br>

==============================<u></u>==============================<u></u>==================<br>
--- cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.c (original)<br>
+++ cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.c (removed)<br>
@@ -1,8 +0,0 @@<br>
-// RUN: %clang_cc1 -emit-llvm -g -I%p %s -o - | FileCheck %s<br>
-// Test that the location of the typedef points to the header file.<br>
-#include "typedef.h"<br>
-<br>
-MyType a;<br>
-<br>
-// CHECK: metadata ![[HEADER:[0-9]+]]} ; [ DW_TAG_typedef ] [MyType] [line 1, size 0, align 0, offset 0] [from int]<br>
-// CHECK: ![[HEADER]] = {{.*}}debug-info-typedef.h",<br>
<br>
Removed: cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-info-typedef.h?rev=199757&view=auto" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/cfe/trunk/test/<u></u>CodeGen/debug-info-typedef.h?<u></u>rev=199757&view=auto</a><br>

==============================<u></u>==============================<u></u>==================<br>
--- cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.h (original)<br>
+++ cfe/trunk/test/CodeGen/debug-<u></u>info-typedef.h (removed)<br>
@@ -1,2 +0,0 @@<br>
-typedef int MyType;<br>
-<br>
<br>
<br>
______________________________<u></u>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-commits</a><br>
</blockquote></div>