[dragonegg] r178342 - This is no longer needed as OFFSET_TYPE is treated as a pointer type generally.
Duncan Sands
baldrick at free.fr
Fri Mar 29 05:26:26 PDT 2013
Author: baldrick
Date: Fri Mar 29 07:26:25 2013
New Revision: 178342
URL: http://llvm.org/viewvc/llvm-project?rev=178342&view=rev
Log:
This is no longer needed as OFFSET_TYPE is treated as a pointer type generally.
Modified:
dragonegg/trunk/src/Debug.cpp
Modified: dragonegg/trunk/src/Debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Debug.cpp?rev=178342&r1=178341&r2=178342&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Fri Mar 29 07:26:25 2013
@@ -370,8 +370,6 @@ void DebugInfo::EmitDeclare(tree decl, u
// Construct variable.
DIScope VarScope = DIScope(cast<MDNode>(RegionStack.back()));
DIType Ty = getOrCreateType(type);
- if (!Ty && isa<OFFSET_TYPE>(type))
- Ty = createPointerType(type);
if (Ty && DECL_ARTIFICIAL(decl))
Ty = DebugFactory.CreateArtificialType(Ty);
// If type info is not available then do not emit debug info for this var.
More information about the llvm-commits
mailing list